Closed tranghaviet closed 5 years ago
When I run dev server the index.js was import wrong files so I get error file not found.
index.js
My nuxt config:
[ 'nuxt-svgicon', { tagName: 'svg-icon', sourcePath: 'svg-icons', targetPath: 'components/compiled-icons', } ]
I put all svg icons in svg-icons folder
The generated files in components/compiled-icons folder:
The components/compiled-icons/index.js file:
components/compiled-icons/index.js
/* eslint-disable */ import './chevron-up-circle.js' import './new-solid.js' import './plus-circle.js'
Please help me :(
Hi. Set subDir option the same as sourcePath. And all will be good :)
In next release I will set subDir same as sourcePath by default
Hope to see it. Good work @dschewchenko :D
When I run dev server the
index.js
was import wrong files so I get error file not found.My nuxt config:
I put all svg icons in svg-icons folder
The generated files in components/compiled-icons folder:
The
components/compiled-icons/index.js
file:Please help me :(