chore: minify themes css (#34824)

This commit is contained in:
afc163 2022-04-01 14:29:06 +08:00 committed by GitHub
parent 1e06f6cdc7
commit dd13e806b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ jobs:
key: lock-${{ github.sha }}
- name: create package-lock.json
run: npm i --package-lock-only --ignore-scripts --force
run: npm i --package-lock-only --ignore-scripts
- name: hack for single file
run: |
@ -402,4 +402,4 @@ jobs:
run: npm test
env:
LIB_DIR: ${{ matrix.module }}
needs: compile
needs: compile

View File

@ -87,6 +87,7 @@ module.exports = {
};
} else if (process.env.ESBUILD) {
// use esbuild
config.optimization.minimize = true;
config.optimization.minimizer = [
new ESBuildMinifyPlugin({
target: 'es2015',