|
|
@@ -40,7 +40,7 @@ export default defineConfig({
|
|
|
})
|
|
|
```
|
|
|
|
|
|
-During development, simply place the SVG files you need in the specified input folder (default: `src/assets/svgs`). The plugin will automatically combine them into a single SVG symbol file and output it to the specified output folder (default: `public/fonts`). After building with Vite, the files in the public folder will be copied to the dist folder. Therefore, after building, the combined SVG symbol file will be located in the dist/fonts folder. Please refer to the [Vite Asset Handling](https://vitejs.dev/guide/assets.html#the-public-directory) documentation.
|
|
|
+During development, simply place the SVG files you need in the specified input folder (default: `src/assets/icons`). The plugin will automatically combine them into a single SVG symbol file and output it to the specified output folder (default: `public/fonts`). After building with Vite, the files in the public folder will be copied to the dist folder. Therefore, after building, the combined SVG symbol file will be located in the dist/fonts folder. Please refer to the [Vite Asset Handling](https://vitejs.dev/guide/assets.html#the-public-directory) documentation.
|
|
|
|
|
|
Generally, you can simply place the SVG files in the default input folder without the need for additional configuration.
|
|
|
|
|
|
@@ -65,7 +65,7 @@ In general, the use of symbols is to combine a series of small, single-color SVG
|
|
|
|
|
|
| Parameter | Default | Description |
|
|
|
| --------- | ----------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
|
-| inFile | 'src/assets/svgs' | The folder where all the SVG files to be merged are located. |
|
|
|
+| inFile | 'src/assets/icons' | The folder where all the SVG files to be merged are located. |
|
|
|
| outFile | 'public/fonts' | The output path for the merged SVG symbol file. |
|
|
|
| fileName | 'symbol' | The filename of the merged SVG symbol file. |
|
|
|
| simple | true | Whether to use the simple mode, the simple mode will remove the color attributes of the SVG files themselves. |
|