aboutsummaryrefslogtreecommitdiff
path: root/juick-www/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-28 17:52:45 +0300
committerGravatar Vitaly Takmazov2018-05-28 17:52:45 +0300
commit1fc712e29e1275e87ebd6238560aa0c0eaa07d5c (patch)
tree2487768c5c0acc4c9adf4ac7288ea24f5788a443 /juick-www/webpack.config.js
parent77a6aa1b1e28f2d66c494e69caa691c1d69ca6af (diff)
update npm dependencies
Diffstat (limited to 'juick-www/webpack.config.js')
-rw-r--r--juick-www/webpack.config.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index fd29405a..457ab41a 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -1,5 +1,5 @@
const webpack = require("webpack")
-const ExtractTextPlugin = require("extract-text-webpack-plugin")
+const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const StyleLintPlugin = require('stylelint-webpack-plugin')
module.exports = {
@@ -24,9 +24,13 @@ module.exports = {
{ test: /\.jsx?$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { failOnWarning: false, failOnError: true, fix: true } },
{ test: /\.js$/, loader: 'babel-loader', query: { presets: ['env'] } },
{
- test: /\.css$/, loader: ExtractTextPlugin.extract({
- fallback: "style-loader",
- use: ["css-loader", {
+ test: /\.css$/,
+ use: [
+ MiniCssExtractPlugin.loader,
+ {
+ loader: "css-loader"
+ },
+ {
loader: "postcss-loader", options: {
plugins: () => [
require('autoprefixer')({
@@ -34,8 +38,8 @@ module.exports = {
})
]
}
- }]
- })
+ }
+ ]
},
{ test: /\.png$/, loader: "url-loader?limit=10000000000" },
{ test: /\.svg$/, loader: "url-loader?limit=10000000000" }
@@ -43,7 +47,7 @@ module.exports = {
},
plugins: [
new StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/assets', files: ['**/*.css'], emitErrors: false }),
- new ExtractTextPlugin({ filename: "style.css", allChunks: true })
+ new MiniCssExtractPlugin({ filename: "style.css", allChunks: true })
],
}