File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
multiple-entry-points-commons-chunk-css-bundle Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1- var ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
1+ const LoaderOptionsPlugin = require ( "webpack" ) . LoaderOptionsPlugin ;
2+
3+ const ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
24module . exports = {
35 module : {
46 rules : [
@@ -15,6 +17,10 @@ module.exports = {
1517 plugins : [
1618 new ExtractTextPlugin ( {
1719 filename : "style.css"
20+ } ) ,
21+ // Temporary workaround for the file-loader
22+ new LoaderOptionsPlugin ( {
23+ options : { }
1824 } )
1925 ]
2026} ;
Original file line number Diff line number Diff line change 1- var ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
1+ const LoaderOptionsPlugin = require ( "webpack" ) . LoaderOptionsPlugin ;
2+
3+ const ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
24module . exports = {
35 module : {
46 rules : [
@@ -15,6 +17,10 @@ module.exports = {
1517 new ExtractTextPlugin ( {
1618 filename : "style.css" ,
1719 allChunks : true
20+ } ) ,
21+ // Temporary workaround for the file-loader
22+ new LoaderOptionsPlugin ( {
23+ options : { }
1824 } )
1925 ]
2026} ;
Original file line number Diff line number Diff line change 11var path = require ( "path" ) ;
2+ const LoaderOptionsPlugin = require ( "webpack" ) . LoaderOptionsPlugin ;
23var CommonsChunkPlugin = require ( "../../lib/optimize/CommonsChunkPlugin" ) ;
34var ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
45module . exports = {
@@ -32,5 +33,9 @@ module.exports = {
3233 new ExtractTextPlugin ( {
3334 filename : "[name].css"
3435 } ) ,
36+ // Temporary workaround for the file-loader
37+ new LoaderOptionsPlugin ( {
38+ options : { }
39+ } )
3540 ]
3641} ;
You can’t perform that action at this time.
0 commit comments