Skip to content

Releases: Developmint/nuxt-svg-loader

v1.0.0

09 Jan 15:30
Compare
Choose a tag to compare

Tada!

We switched to https://github.com/egoist/svg-to-vue-component under the hood!
Though the implementation should be (almost) a drop-in replacement, we've tagged breaking changes because of different defaults and because 1.0.0 should've been tagged long time ago.

Migrating from 0.x

  1. Update the deps (of course!)
  2. Rename svgo to svgoConfig
  3. If you used id prefixing manually before, you can delete the config:
export default {
  svgLoader: {
    svgo: { //Rename to svgoConfig  
      plugins: [
        { prefixIds: true } // Delete that line (or the whole svgLoader object if you don't have any other configurations)
      ]
    }
  }
}