@@ -439,6 +439,7 @@ You can also save this options object in a JSON file and use it with the shell c
439
439
440
440
resolve: {
441
441
// options for resolving
442
+ // see https://github.com/webpack/enhanced-resolve for more
442
443
443
444
paths: [" /my/absolute/dirname" ],
444
445
// default: (defaults are also included if you define your own)
@@ -463,7 +464,7 @@ You can also save this options object in a JSON file and use it with the shell c
463
464
// postfixes for files to try
464
465
465
466
packageMains: [" abc" , " main" ]
466
- // defaults: ["webpack", "browserify", "main"]
467
+ // defaults: ["webpack", "browserify", "web", " main"]
467
468
// lookup fields in package.json
468
469
469
470
loaderExtensions: [" .loader.js" , " .www-loader.js" , " " , " .js" ],
@@ -479,7 +480,7 @@ You can also save this options object in a JSON file and use it with the shell c
479
480
// postfixes for loader modules to try
480
481
481
482
loaderPackageMains: [" loader" , " main" ]
482
- // defaults: ["webpackLoader", "loader ", "webpack ", "main"]
483
+ // defaults: ["webpackLoader", "webLoader ", "loader ", "main"]
483
484
// lookup fields for loaders in package.json
484
485
485
486
loaders: [{
@@ -488,11 +489,11 @@ You can also save this options object in a JSON file and use it with the shell c
488
489
loader: " val"
489
490
}],
490
491
// default: (defaults are also included if you define your own)
491
- // [{test: /\ .coffee$/ , loader: "coffee"},
492
- // {test: /\ .json$/ , loader: "json"},
493
- // {test: /\ .jade$/ , loader: "jade"},
494
- // {test: /\ .css$/ , loader: "style!css"},
495
- // {test: /\ .less$/ , loader: "style!css!val!less"}]
492
+ // [{test: "\\\\ .coffee$" , loader: "coffee"},
493
+ // {test: "\\\\ .json$" , loader: "json"},
494
+ // {test: "\\\\ .jade$" , loader: "jade"},
495
+ // {test: "\\\\ .css$" , loader: "style!css"},
496
+ // {test: "\\\\ .less$" , loader: "style!css!val/separable?cacheable !less"}]
496
497
// automatically use loaders if filename match RegExp
497
498
// and no loader is specified.
498
499
// you can pass a RegExp as string, or multiple RegExps/strings in an array
0 commit comments