diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 18db4ec5..9056e0a0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,5 +1,4 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -const StyleLintPlugin = require('stylelint-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); @@ -47,6 +46,7 @@ module.exports = (env, argv) => { { loader: 'postcss-loader', options: { plugins: () => [ + require('stylelint')(), require('postcss-preset-env')() ] } @@ -58,7 +58,6 @@ module.exports = (env, argv) => { ] }, plugins: [ - new StyleLintPlugin({ configFile: '.stylelintrc.json', context: 'src/main/assets', files: ['**/*.css'], emitErrors: false }), new MiniCssExtractPlugin({ filename: 'style.css', allChunks: true }) ], }; |