laravel-mix-svg-vue
laravel-mix-svg-vue copied to clipboard
change_extendDefaultPlugins_to_preset_default
"extendDefaultPlugins" utility is deprecated. So I changed it to preset_default plugin
Is there a timeline for when this will be merged?
@danielstgt Hi can you review and merge this pr? Would appreciate it! :slightly_smiling_face:
Until @danielstgt gets time to merge this in, I've created a fork which can be installed with NPM here @luckyzeno @medeiroz @unre4l
I swithced to @georgehanson package.
Problem was svg were not scaling correcty and the reason was, that svgo was removing svg viewBoxes. It seems, that svgo settings format has also changed.
I had to change svgoSettings from this:
.svgVue({
...
svgoSettings: [
{ removeTitle: true },
{ removeViewBox: false },
{ removeDimensions: true }
]
});
to this
.svgVue({
...
svgoSettings: {
removeViewBox: false
}
});