diff options
author | silverwind | 2020-08-12 00:30:47 +0200 |
---|---|---|
committer | GitHub | 2020-08-12 00:30:47 +0200 |
commit | c18b0529ede8087530da3d585fb41457978d043b (patch) | |
tree | 40fd9dc9eaf1282893fbf6b70390516ef314eb31 /webpack.config.js | |
parent | 74bd9691c685942798f2761607731697498ceeae (diff) |
Update JS dependencies (#12474)
* Update JS dependencies
- Update worker-loader options (currently unused pending #12459)
- Remove @babel/plugin-proposal-object-rest-spread, it's enabled by
default
- Switch cssnano-webpack-plugin to css-minimizer-webpack-plugin which
had been renamed
* switch to css-minimizer-webpack-plugin
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/webpack.config.js b/webpack.config.js index e733a7784..d7f0c83d8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,6 @@ const fastGlob = require('fast-glob'); const wrapAnsi = require('wrap-ansi'); -const CssNanoPlugin = require('cssnano-webpack-plugin'); +const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin'); @@ -80,9 +80,9 @@ module.exports = { }, }, }), - new CssNanoPlugin({ + new CssMinimizerPlugin({ sourceMap: true, - cssnanoOptions: { + minimizerOptions: { preset: [ 'default', { @@ -113,9 +113,7 @@ module.exports = { { loader: 'worker-loader', options: { - name: '[name].js', - inline: true, - fallback: false, + inline: 'no-fallback', }, }, ], @@ -151,7 +149,6 @@ module.exports = { regenerator: true, } ], - '@babel/plugin-proposal-object-rest-spread', ], generatorOpts: { compact: false, |