Open wondergitluda opened 4 years ago
Updating the code to 2.1.1 version an error occurred on frontend.
Instead of showing the correct .svg file traslating the <template> code, on frontend it's still the same of the the IconComponent.vue, like this.
<template>
IconComponent.vue
<object data="require(SVGPATH/${icon}.svg)" type="${icon}.svg" class="fill-current margin-right-16 width-16"></object>
Why?
Here's the code my webpack.min.js
const mix = require('laravel-mix') require('laravel-mix-vue-svgicon') mix.svgicon('./node_modules/svg-repository')
and on my example.vue
import Icon from 'laravel-mix-vue-svgicon/IconComponent.vue' <icon :icon="logo" />
Thanx
Updating the code to 2.1.1 version an error occurred on frontend.
Instead of showing the correct .svg file traslating the
<template>
code, on frontend it's still the same of the theIconComponent.vue
, like this.Why?
Here's the code my webpack.min.js
and on my example.vue
Thanx