minimize css
This commit is contained in:
parent
f6d07eb657
commit
2e8d5371e4
1475
package-lock.json
generated
1475
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,7 @@
|
|||||||
"homepage": "https://github.com/dogeystamp/encryptme#readme",
|
"homepage": "https://github.com/dogeystamp/encryptme#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"css-loader": "^6.7.3",
|
"css-loader": "^6.7.3",
|
||||||
|
"css-minimizer-webpack-plugin": "^4.2.2",
|
||||||
"eslint": "^8.33.0",
|
"eslint": "^8.33.0",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"mini-css-extract-plugin": "^2.7.2",
|
"mini-css-extract-plugin": "^2.7.2",
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
const { merge } = require("webpack-merge");
|
const { merge } = require("webpack-merge");
|
||||||
const common = require("./webpack.common.js");
|
const common = require("./webpack.common.js");
|
||||||
|
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
devtool: "source-map",
|
optimization: {
|
||||||
|
minimizer: [
|
||||||
|
"...",
|
||||||
|
new CssMinimizerPlugin(),
|
||||||
|
]
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user