laravel-mix-svg-vue icon indicating copy to clipboard operation
laravel-mix-svg-vue copied to clipboard

change_extendDefaultPlugins_to_preset_default

Open luckyzeno opened this issue 3 years ago • 4 comments

"extendDefaultPlugins" utility is deprecated. So I changed it to preset_default plugin

luckyzeno avatar Dec 06 '21 04:12 luckyzeno

Is there a timeline for when this will be merged?

medeiroz avatar Jan 30 '22 09:01 medeiroz

@danielstgt Hi can you review and merge this pr? Would appreciate it! :slightly_smiling_face:

unre4l avatar May 05 '22 13:05 unre4l

Until @danielstgt gets time to merge this in, I've created a fork which can be installed with NPM here @luckyzeno @medeiroz @unre4l

georgehanson avatar Jul 14 '22 09:07 georgehanson

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
  }
});

tonila avatar Jul 15 '23 09:07 tonila