ant-design按需引入,缩小包体积

This commit is contained in:
albert
2023-04-26 21:31:33 +08:00
parent c7fbd12336
commit e173a0c27e
10 changed files with 476 additions and 41056 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "json-schema-editor-vue",
"version": "2.2.1",
"version": "2.2.2",
"author": "zhangyq",
"description": "A json-schema editor of high efficient and easy-to-use, base on Vue",
"keywords": [
@@ -22,7 +22,8 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"lib": "vue-cli-service build --target lib --name json-schema-editor-vue --dest lib packages/index.js"
"lib": "vue-cli-service build --target lib --name json-schema-editor-vue --dest lib packages/index.js",
"analyzer": "cross-env analyzer=true vue-cli-service build"
},
"dependencies": {
"ant-design-vue": "^1.7.2",
@@ -37,9 +38,13 @@
"@vue/cli-service": "~4.4.0",
"babel-eslint": "^10.1.0",
"babel-plugin-import": "^1.13.0",
"babel-plugin-lodash": "^3.3.4",
"cross-env": "^7.0.3",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
"lodash-webpack-plugin": "^0.11.6",
"vue-template-compiler": "^2.6.11",
"webpack-bundle-analyzer": "^4.8.0"
},
"eslintConfig": {
"root": true,