소스 검색

[create]Change default inFile for [icon]

dufu1991 3 년 전
부모
커밋
23abd2de21

+ 1 - 1
packages/create-stdf/package.json

@@ -1,6 +1,6 @@
 {
     "name": "create-stdf",
-    "version": "0.0.34",
+    "version": "0.0.35",
     "description": "A CLI for creating new STDF projects",
     "bin": {
         "create-stdf": "index.js"

+ 2 - 2
packages/create-stdf/templates/vite-tailwind/vite.config.js

@@ -23,10 +23,10 @@ export default defineConfig({
             },
         }),
         // 一般来说,一个应用的所有 svg 都放在一个文件夹下,合并为一个 symbol 即可。
-        // 如默认配置的 src/assets/svgs 内,合并之后 symbol 会放置于 public/fonts/symbol.svg 下。
+        // 如默认配置的 src/assets/icons 内,合并之后 symbol 会放置于 public/fonts/symbol.svg 下。
         // 此处只是为了演示不同文件夹下的图标如何合并为不同的 symbol。
         // Generally speaking, all of an application svg are placed in a folder and merged into one symbol.
-        // As in the default configuration of src/assets/svgs, the merged symbol will be placed under public/fonts/symbol.svg.
+        // As in the default configuration of src/assets/icons, the merged symbol will be placed under public/fonts/symbol.svg.
         // Here is just to show how icons in different folders are merged into different symbols.
         svgSprite([
             { inFile: 'src/assets/Heroicons', outFile: 'public/fonts', fileName: 'Heroicons' },

+ 2 - 2
packages/create-stdf/templates/vite-uno/vite.config.js

@@ -27,10 +27,10 @@ export default defineConfig({
             },
         }),
         // 一般来说,一个应用的所有 svg 都放在一个文件夹下,合并为一个 symbol 即可。
-        // 如默认配置的 src/assets/svgs 内,合并之后 symbol 会放置于 public/fonts/symbol.svg 下。
+        // 如默认配置的 src/assets/icons 内,合并之后 symbol 会放置于 public/fonts/symbol.svg 下。
         // 此处只是为了演示不同文件夹下的图标如何合并为不同的 symbol。
         // Generally speaking, all of an application svg are placed in a folder and merged into one symbol.
-        // As in the default configuration of src/assets/svgs, the merged symbol will be placed under public/fonts/symbol.svg.
+        // As in the default configuration of src/assets/icons, the merged symbol will be placed under public/fonts/symbol.svg.
         // Here is just to show how icons in different folders are merged into different symbols.
         svgSprite([
             { inFile: 'src/assets/Heroicons', outFile: 'public/fonts', fileName: 'Heroicons' },