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