From 613d1f98624a762cab61d807061705ed17f41b7f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 10 Sep 2020 21:15:15 +0300 Subject: Update deps * Fix breaking changes compatibility with nimbus-jose-jwt 9.0 and postcss-loader 4.0 --- webpack.config.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'webpack.config.js') 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({}) ] }; } -- cgit v1.2.3