Skip to content

Commit

Permalink
chore: updare README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sudongyuer committed Jul 16, 2022
1 parent fc151a7 commit 451349f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ When developing, we often need to download some `images` or `svg` from the inter
- custom outputDir
- 🍄 Support custom import statement
- ✨ HMR support
- 🌈 Nest directory generate support
- 🍣 Auto Prefix support


## 📺 Preview

Expand Down Expand Up @@ -53,6 +56,11 @@ export default defineExportConfig({
{
targetDir: './src/assets/images',
},
{
targetDir: './src/assets/img',
depth: true,
autoPrefix: true
},
{
targetDir: './src/assets/css',
outputDir: './src/assets/css',
Expand All @@ -63,6 +71,13 @@ export default defineExportConfig({
return `import { ReactComponent as ${fileName} } from '${file}'`
},
},
{
targetDir: './src/assets/gif',
customImport: (fileName, file, fileType) => {
return `import ${fileType}${fileName} from '${file}'`
},
depth: true
},
],
})

Expand Down

0 comments on commit 451349f

Please sign in to comment.