feat:引入svg-sprite-loader

This commit is contained in:
有来技术
2021-11-24 23:56:09 +08:00
parent cc91e72ba9
commit 151edb3b07
97 changed files with 192 additions and 65 deletions

View File

@@ -1,12 +1,16 @@
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import { createSvg } from './src/icons/index'
// 在 ts 模块中加载 node 核心模块需要安装 node 的类型补充模块: npm i -D @types/node
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [
vue(),
createSvg('./src/icons/svg/')
],
resolve: {
// Vite2设置别名路径方式一
/**