mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
feat: 添加cssnano
,打包时压缩css
体积
This commit is contained in:
parent
392105e820
commit
594f9b98ab
@ -117,6 +117,7 @@
|
|||||||
"@vue/runtime-core": "^3.2.38",
|
"@vue/runtime-core": "^3.2.38",
|
||||||
"autoprefixer": "^10.4.8",
|
"autoprefixer": "^10.4.8",
|
||||||
"cloc": "^2.10.0",
|
"cloc": "^2.10.0",
|
||||||
|
"cssnano": "^5.1.13",
|
||||||
"eslint": "^8.8.0",
|
"eslint": "^8.8.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"eslint-plugin-vue": "^8.4.1",
|
"eslint-plugin-vue": "^8.4.1",
|
||||||
|
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@ -52,6 +52,7 @@ specifiers:
|
|||||||
china-area-data: ^5.0.1
|
china-area-data: ^5.0.1
|
||||||
cloc: ^2.10.0
|
cloc: ^2.10.0
|
||||||
cropperjs: ^1.5.12
|
cropperjs: ^1.5.12
|
||||||
|
cssnano: ^5.1.13
|
||||||
dayjs: ^1.11.4
|
dayjs: ^1.11.4
|
||||||
driver.js: ^0.9.8
|
driver.js: ^0.9.8
|
||||||
echarts: ^5.3.3
|
echarts: ^5.3.3
|
||||||
@ -212,6 +213,7 @@ devDependencies:
|
|||||||
'@vue/runtime-core': 3.2.38
|
'@vue/runtime-core': 3.2.38
|
||||||
autoprefixer: 10.4.8_postcss@8.4.16
|
autoprefixer: 10.4.8_postcss@8.4.16
|
||||||
cloc: 2.10.0
|
cloc: 2.10.0
|
||||||
|
cssnano: 5.1.13_postcss@8.4.16
|
||||||
eslint: 8.23.0
|
eslint: 8.23.0
|
||||||
eslint-plugin-prettier: 4.2.1_eslint@8.23.0+prettier@2.7.1
|
eslint-plugin-prettier: 4.2.1_eslint@8.23.0+prettier@2.7.1
|
||||||
eslint-plugin-vue: 8.7.1_eslint@8.23.0
|
eslint-plugin-vue: 8.7.1_eslint@8.23.0
|
||||||
|
@ -2,6 +2,7 @@ module.exports = {
|
|||||||
plugins: {
|
plugins: {
|
||||||
"postcss-import": {},
|
"postcss-import": {},
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {}
|
autoprefixer: {},
|
||||||
|
...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user