mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
chore: minify themes css (#34824)
This commit is contained in:
parent
1e06f6cdc7
commit
dd13e806b2
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
key: lock-${{ github.sha }}
|
key: lock-${{ github.sha }}
|
||||||
|
|
||||||
- name: create package-lock.json
|
- 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
|
- name: hack for single file
|
||||||
run: |
|
run: |
|
||||||
@ -402,4 +402,4 @@ jobs:
|
|||||||
run: npm test
|
run: npm test
|
||||||
env:
|
env:
|
||||||
LIB_DIR: ${{ matrix.module }}
|
LIB_DIR: ${{ matrix.module }}
|
||||||
needs: compile
|
needs: compile
|
||||||
|
@ -87,6 +87,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
} else if (process.env.ESBUILD) {
|
} else if (process.env.ESBUILD) {
|
||||||
// use esbuild
|
// use esbuild
|
||||||
|
config.optimization.minimize = true;
|
||||||
config.optimization.minimizer = [
|
config.optimization.minimizer = [
|
||||||
new ESBuildMinifyPlugin({
|
new ESBuildMinifyPlugin({
|
||||||
target: 'es2015',
|
target: 'es2015',
|
||||||
|
Loading…
Reference in New Issue
Block a user