提交 94a826d0 作者: vben

perf: let svg-icon support ssr

上级 6d626d5f
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
}, },
"dependencies": { "dependencies": {
"@iconify/iconify": "^2.0.1", "@iconify/iconify": "^2.0.1",
"@logicflow/core": "^0.4.7", "@logicflow/core": "^0.4.8",
"@logicflow/extension": "^0.4.7", "@logicflow/extension": "^0.4.8",
"@vueuse/core": "^4.11.1", "@vueuse/core": "^4.11.1",
"@zxcvbn-ts/core": "^0.3.0", "@zxcvbn-ts/core": "^0.3.0",
"ant-design-vue": "^2.1.6", "ant-design-vue": "2.1.2",
"axios": "^0.21.1", "axios": "^0.21.1",
"codemirror": "^5.61.1", "codemirror": "^5.61.1",
"cropperjs": "^1.5.11", "cropperjs": "^1.5.11",
...@@ -110,15 +110,15 @@ ...@@ -110,15 +110,15 @@
"stylelint-order": "^4.1.0", "stylelint-order": "^4.1.0",
"ts-node": "^10.0.0", "ts-node": "^10.0.0",
"typescript": "4.2.4", "typescript": "4.2.4",
"vite": "2.3.3", "vite": "2.3.4",
"vite-plugin-compression": "^0.2.5", "vite-plugin-compression": "^0.2.5",
"vite-plugin-html": "^2.0.7", "vite-plugin-html": "^2.0.7",
"vite-plugin-imagemin": "^0.3.2", "vite-plugin-imagemin": "^0.3.2",
"vite-plugin-mock": "2.5.0", "vite-plugin-mock": "^2.5.4",
"vite-plugin-purge-icons": "^0.7.0", "vite-plugin-purge-icons": "^0.7.0",
"vite-plugin-pwa": "^0.7.3", "vite-plugin-pwa": "^0.7.3",
"vite-plugin-style-import": "^0.10.0", "vite-plugin-style-import": "^0.10.1",
"vite-plugin-svg-icons": "^0.6.0", "vite-plugin-svg-icons": "^0.6.1",
"vite-plugin-theme": "^0.7.1", "vite-plugin-theme": "^0.7.1",
"vite-plugin-windicss": "0.16.0", "vite-plugin-windicss": "0.16.0",
"vue-eslint-parser": "^7.6.0", "vue-eslint-parser": "^7.6.0",
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
"resolutions": { "resolutions": {
"//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it", "//": "Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it",
"bin-wrapper": "npm:bin-wrapper-china", "bin-wrapper": "npm:bin-wrapper-china",
"rollup": "^2.49.0" "rollup": "^2.50.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
...@@ -13,7 +13,7 @@ import { setupI18n } from '/@/locales/setupI18n'; ...@@ -13,7 +13,7 @@ import { setupI18n } from '/@/locales/setupI18n';
import { registerGlobComp } from '/@/components/registerGlobComp'; import { registerGlobComp } from '/@/components/registerGlobComp';
// Register icon Sprite // Register icon Sprite
import 'vite-plugin-svg-icons/register'; import 'virtual:svg-icons-register';
// Do not introduce` on-demand in local development? // Do not introduce` on-demand in local development?
// In the local development for on-demand introduction, the number of browser requests will increase by about 20%. // In the local development for on-demand introduction, the number of browser requests will increase by about 20%.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论