Skip to content

Commit b060fee

Browse files
committed
switch to css-minimizer-webpack-plugin
1 parent 7b5de89 commit b060fee

File tree

3 files changed

+106
-13
lines changed

3 files changed

+106
-13
lines changed

package-lock.json

Lines changed: 102 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"clipboard": "2.0.6",
1616
"core-js": "3.6.5",
1717
"css-loader": "4.2.1",
18-
"cssnano-webpack-plugin": "1.0.3",
18+
"css-minimizer-webpack-plugin": "1.1.1",
1919
"dropzone": "5.7.2",
2020
"escape-goat": "3.0.0",
2121
"fast-glob": "3.2.4",

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fastGlob = require('fast-glob');
22
const wrapAnsi = require('wrap-ansi');
3-
const CssNanoPlugin = require('cssnano-webpack-plugin');
3+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
44
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
55
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
66
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
@@ -80,9 +80,9 @@ module.exports = {
8080
},
8181
},
8282
}),
83-
new CssNanoPlugin({
83+
new CssMinimizerPlugin({
8484
sourceMap: true,
85-
cssnanoOptions: {
85+
minimizerOptions: {
8686
preset: [
8787
'default',
8888
{

0 commit comments

Comments
 (0)