vite配置优化

This commit is contained in:
hooray 2021-08-31 00:36:17 +08:00
parent e09880dc34
commit 4df04d2d07

View File

@ -17,7 +17,7 @@ export default function createVitePlugins(viteEnv, isBuild = false) {
vitePlugins.push(createSvgIcon(isBuild))
vitePlugins.push(createMock())
isBuild && vitePlugins.push(...createCompression(viteEnv))
vitePlugins.push(...createSpritesmith())
vitePlugins.push(...createSpritesmith(isBuild))
vitePlugins.push(createBanner())
return vitePlugins
}