Browse Source

chore: minify themes css (#34824)

pull/34830/head
afc163 3 years ago
committed by GitHub
parent
commit
dd13e806b2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/test.yml
  2. 1
      site/bisheng.config.js

4
.github/workflows/test.yml

@ -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

1
site/bisheng.config.js

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

Loading…
Cancel
Save