summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/webpack.config.js b/webpack.config.js
index e733a7784e..d7f0c83d8a 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,