Closed desislavsd closed 3 years ago
I have the same setup as in the example for Nuxt - same Icon.vue, same plugin, same buildModues. Only that I have set
target: "static", ssr: false,
And my icons show only during dev. When I build for production the placeholder span element is rendered instead.
span
Any ideas? Thanks!
Ok I got it! Its because of imports cache!
$ rm -rf node_modules/.cache/
And then rebuild for production and everything works :}
I have the same setup as in the example for Nuxt - same Icon.vue, same plugin, same buildModues. Only that I have set
And my icons show only during dev. When I build for production the placeholder
span
element is rendered instead.Any ideas? Thanks!