Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ldv/update css minimizer #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"babel-loader": "^8.0.0",
"copy-webpack-plugin": "^9.0.0",
"css-loader": "^6.2.0",
"css-minimizer-webpack-plugin": "^4.0.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint-plugin-prettier": "^3.4.0",
"file-loader": "^6.2.0",
"mini-css-extract-plugin": "^2.0.0",
"optimize-css-assets-webpack-plugin": "^6.0.0",
"prettier": "^2.2.1",
"sass-loader": "^12.0.0",
"style-loader": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions assets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ const path = require('path');
const glob = require('glob');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");

module.exports = (env, options) => ({
optimization: {
minimizer: [
new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
new OptimizeCSSAssetsPlugin({})
new CssMinimizerPlugin()
]
},
entry: {
Expand Down
Loading