diff options
author | Vitaly Takmazov | 2019-01-20 11:08:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-01-20 11:08:17 +0300 |
commit | 49783464242dd628668869699c67d427da3c9525 (patch) | |
tree | 74420efb27d34a3a0d979f923a31fb623f9953d2 /webpack.config.js | |
parent | d3c6a54c0ac644a14d2f6d43f780fcb5a4ad130e (diff) |
Use stylelint as postcss plugin
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 }) ], }; |