feat: vite-plugin-svg-icons引入
1. vite-plugin-svg-icons引入 2. vite.config.ts读取环境变量 3. vite配置跨域
This commit is contained in:
1 parent
151edb3b07
commit
40aeda6bfc
98 files changed
+133
-142
No files matched your search
+1
-2
@@ -8,11 +8,10 @@ import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
|
||||
|
||||
import SvgIcon from './icons/index.vue'
|
||||
import 'virtual:svg-icons-register';
|
||||
|
||||
const app=createApp(App)
|
||||
app
|
||||
.component('svg-icon', SvgIcon)
|
||||
.use(router)
|
||||
.use(store,key)
|
||||
.use(ElementPlus)
|
||||
|
||||
Reference in new issue
Block a user