aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-15 14:24:47 +0300
committerGravatar Vitaly Takmazov2020-10-15 14:24:47 +0300
commitc82278e13d076c0fd1ade2433d2c09d1050641c7 (patch)
treef209d98bdf0221b6d4f8d0ab5aa9e26896e74225 /webpack.config.js
parentab397f8c1128e60676e846c1c4f95e51ab63678f (diff)
Cleanup webpack configuration
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index c12c19d8..843e9b69 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,5 +1,4 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
-const TerserPlugin = require('terser-webpack-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const ESLintPlugin = require('eslint-webpack-plugin');
@@ -53,7 +52,7 @@ module.exports = (env, argv) => {
postcssOptions: {
plugins: [
'stylelint',
- ['postcss-preset-env', { stage: 0, autoprefixer: { grid: true } }]
+ 'postcss-preset-env'
]
}
}
@@ -67,7 +66,7 @@ module.exports = (env, argv) => {
]
},
plugins: [
- new MiniCssExtractPlugin({ filename: 'style.css', allChunks: true }),
+ new MiniCssExtractPlugin({ filename: 'style.css' }),
new ESLintPlugin({ files: 'src/main/assets', lintDirtyModulesOnly: true, failOnWarning: false, failOnError: true, fix: false })
],
};