fix(vite): #14
This commit is contained in:
parent
5d5dafd7d5
commit
a56805a817
@ -63,7 +63,9 @@ export default ({ command, mode }) => {
|
||||
Uni(),
|
||||
UnoCSS(),
|
||||
// svg 可以当做组件来使用(Vite plugin to load SVG files as Vue components, using SVGO for optimization.)
|
||||
svgLoader(),
|
||||
svgLoader({
|
||||
defaultImport: 'url', // or 'raw'
|
||||
}),
|
||||
createSvgIconsPlugin({
|
||||
// 指定要缓存的文件夹
|
||||
iconDirs: [path.resolve(process.cwd(), 'src/assets/svg')],
|
||||
|
Loading…
x
Reference in New Issue
Block a user