From dd13e806b26359badbf4ff4366b7a447cdda22fe Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 1 Apr 2022 14:29:06 +0800 Subject: [PATCH] chore: minify themes css (#34824) --- .github/workflows/test.yml | 4 ++-- site/bisheng.config.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fda0e3ca65..0b79c392f9 100644 --- a/.github/workflows/test.yml +++ b/.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 \ No newline at end of file + needs: compile diff --git a/site/bisheng.config.js b/site/bisheng.config.js index fe210d593d..3e0c818000 100644 --- a/site/bisheng.config.js +++ b/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',