diff options
author | Vitaly Takmazov | 2020-09-10 21:15:15 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-09-10 21:15:15 +0300 |
commit | 613d1f98624a762cab61d807061705ed17f41b7f (patch) | |
tree | fbfd2f46b4b25fc2c1cf079b3bed717d05c94ca2 /webpack.config.js | |
parent | 74ac239f422136d59d8d2fda4903ca87f23686b2 (diff) |
Update deps
* Fix breaking changes compatibility with nimbus-jose-jwt 9.0 and postcss-loader 4.0
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/webpack.config.js b/webpack.config.js index d612fb13..ec459ace 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -40,16 +40,19 @@ module.exports = (env, argv) => { { test: /\.css$/, use: [ - dev? 'style-loader' : MiniCssExtractPlugin.loader, + dev ? 'style-loader' : MiniCssExtractPlugin.loader, { loader: 'css-loader' }, { - loader: 'postcss-loader', options: { - plugins: () => [ - require('stylelint')(), - require('postcss-preset-env')({ stage: 0, autoprefixer: { grid: true } }) - ] + loader: 'postcss-loader', + options: { + postcssOptions: { + plugins: [ + 'stylelint', + ['postcss-preset-env', { stage: 0, autoprefixer: { grid: true } }] + ] + } } } ] @@ -80,7 +83,7 @@ module.exports = (env, argv) => { }, extractComments: true }), - new OptimizeCSSAssetsPlugin({}) + new OptimizeCSSAssetsPlugin({}) ] }; } |