minimize css

This commit is contained in:
dogeystamp 2023-01-30 21:44:50 -05:00
parent f6d07eb657
commit 2e8d5371e4
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 1483 additions and 1 deletions

1475
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,6 +34,7 @@
"homepage": "https://github.com/dogeystamp/encryptme#readme",
"devDependencies": {
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^4.2.2",
"eslint": "^8.33.0",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "^2.7.2",

View File

@ -1,7 +1,13 @@
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
module.exports = merge(common, {
mode: "production",
devtool: "source-map",
optimization: {
minimizer: [
"...",
new CssMinimizerPlugin(),
]
}
});