1.0.9 • Published 5 years ago
react-component-svg-auto-export v1.0.9
Welcome to react-component-svg-auto-export!
multiple SVG is automatically change react Component. so handy.
Use
- package.json
"scripts": {
"build" : yarn pre-build-autoExportScripts && << add in.
"pre-build-autoExportScripts": "node ./node_modules/react-component-svg-auto-export/index.ts"
}
- node_modules / react-component-svg-auto-export / index.ts in
3. const iconsIndex = "./../../index.ts" <(insert svg path)
4. path.join(__dirname, "../../..") <(insert svg path)
- use
will be contents(import, export) in index.ts.