File tree Expand file tree Collapse file tree 3 files changed +245
-1806
lines changed Expand file tree Collapse file tree 3 files changed +245
-1806
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
13
13
import viteCompression from 'vite-plugin-compression'
14
14
import topLevelAwait from 'vite-plugin-top-level-await'
15
15
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
16
- import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
16
+ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons-ng '
17
17
import UnoCSS from 'unocss/vite'
18
18
19
19
export function createVitePlugins ( ) {
@@ -78,7 +78,6 @@ export function createVitePlugins() {
78
78
createSvgIconsPlugin ( {
79
79
iconDirs : [ pathResolve ( 'src/assets/svgs' ) ] ,
80
80
symbolId : 'icon-[dir]-[name]' ,
81
- svgoOptions : true
82
81
} ) ,
83
82
viteCompression ( {
84
83
verbose : true , // 是否在控制台输出压缩结果
Original file line number Diff line number Diff line change 133
133
"vite-plugin-eslint" : " ^1.8.1" ,
134
134
"vite-plugin-progress" : " ^0.0.7" ,
135
135
"vite-plugin-purge-icons" : " ^0.10.0" ,
136
- "vite-plugin-svg-icons" : " ^2.0 .1" ,
136
+ "vite-plugin-svg-icons-ng " : " ^1.3 .1" ,
137
137
"vite-plugin-top-level-await" : " ^1.4.4" ,
138
138
"vue-eslint-parser" : " ^9.3.2" ,
139
139
"vue-tsc" : " ^1.8.27"
You can’t perform that action at this time.
0 commit comments