Skip to content

Commit 86c3bdc

Browse files
committed
add temporary workarounds for not-updated file-loader
1 parent ee31dc4 commit 86c3bdc

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

examples/code-splitted-css-bundle/webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var ExtractTextPlugin = require("extract-text-webpack-plugin");
1+
const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
2+
3+
const ExtractTextPlugin = require("extract-text-webpack-plugin");
24
module.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
};

examples/css-bundle/webpack.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
var ExtractTextPlugin = require("extract-text-webpack-plugin");
1+
const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
2+
3+
const ExtractTextPlugin = require("extract-text-webpack-plugin");
24
module.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
};

examples/multiple-entry-points-commons-chunk-css-bundle/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var path = require("path");
2+
const LoaderOptionsPlugin = require("webpack").LoaderOptionsPlugin;
23
var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
34
var ExtractTextPlugin = require("extract-text-webpack-plugin");
45
module.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
};

0 commit comments

Comments
 (0)