Skip to content
Snippets Groups Projects
Commit d101dbaa authored by Alexander Rose's avatar Alexander Rose
Browse files

packages update, use "mini-css-extract-plugin" instead of "extract-text-webpack-plugin"

parent 1edc1e41
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
const path = require('path');
const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
module: {
rules: [
......@@ -25,10 +25,7 @@ module.exports = {
},
{
test:/\.(s*)css$/,
use: ExtractTextPlugin.extract({
fallback:'style-loader',
use:['css-loader', 'resolve-url-loader', 'sass-loader'],
})
use: [ MiniCssExtractPlugin.loader, 'css-loader', 'resolve-url-loader', 'sass-loader' ]
}
]
},
......@@ -42,6 +39,6 @@ module.exports = {
'./build/node_modules/**/*.html'
],
}),
new ExtractTextPlugin({ filename:'app.css' }),
new MiniCssExtractPlugin({ filename: "app.css" })
],
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment