|
@@ -20,12 +20,7 @@ export default defineConfig(({ mode, command }) => {
|
|
|
|
|
|
const svgPlugin = createSvgIconsPlugin({
|
|
const svgPlugin = createSvgIconsPlugin({
|
|
// Specify the icon folder to be cached
|
|
// Specify the icon folder to be cached
|
|
- iconDirs: [
|
|
|
|
- path.resolve(
|
|
|
|
- process.cwd(),
|
|
|
|
- `${mode === 'storybook' ? '../public' : 'public'}/assets/images/icons`,
|
|
|
|
- ),
|
|
|
|
- ],
|
|
|
|
|
|
+ iconDirs: [path.resolve(process.cwd(), `public/assets/images/icons`)],
|
|
// Specify symbolId format
|
|
// Specify symbolId format
|
|
symbolId: 'icon-[dir]-[name]',
|
|
symbolId: 'icon-[dir]-[name]',
|
|
svgoOptions: {
|
|
svgoOptions: {
|