diff options
author | Vitaly Takmazov | 2020-09-10 21:39:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | 94bac83b2bc8c51673c75a0a0aa81311861be329 (patch) | |
tree | 471a5b479e4473524cce4ea3aa34fd0f1690c66f /vnext/webpack.config.js | |
parent | b64f8252ea4e44e1403c8525dbc3016ee2d7da91 (diff) |
Update deps
* Fix webpack configuration to be compatible with postcss-loader 9.0
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r-- | vnext/webpack.config.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 041d3924..0a2ccb1c 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -5,8 +5,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const ErrorOverlayPlugin = require('error-overlay-webpack-plugin'); -const postcssPresetEnv = require('postcss-preset-env'); -const stylelint = require('stylelint'); module.exports = (env, argv) => { const dev = argv.mode !== 'production'; @@ -45,11 +43,14 @@ module.exports = (env, argv) => { loader: 'css-loader' }, { - loader: 'postcss-loader', options: { - plugins: () => [ - stylelint(), - postcssPresetEnv({ stage: 0, autoprefixer: { grid: true } }) - ] + loader: 'postcss-loader', + options: { + postcssOptions: { + plugins: [ + 'stylelint', + ['postcss-preset-env', { stage: 0, autoprefixer: { grid: true } }] + ] + } } } ] |