vue-cli-plugin-svg-loader
v1.1.1
Published
Vue CLI plugin that adds vue-svg-loader to enable usage of SVG files as Vue components
Downloads
98
Readme
vue-cli-plugin-svg-loader
Vue SVG Loader Plugin for [email protected]
Install
If you haven't yet installed vue-cli 3, first follow the install instructions here: https://github.com/vuejs/vue-cli
Generate a project
vue create my-appInstall the plugin
cd my-app
vue add svg-loaderConfiguration can be done in vue.config.js.
module.exports = {
pluginOptions: {
svgLoader: {
svgo: { plugins: [{ removeViewBox: false }, { removeXMLNS: true }] }
}
}
};