{"library":"vue-svg-loader-2","type":"library","category":null,"description":"The `vue-svg-loader-2` package is a webpack loader designed to enable the direct import and usage of SVG files as Vue components within web applications. It serves as a actively maintained fork of the original `vue-svg-loader`, ensuring continued compatibility with modern build environments and addressing dependency updates. The current stable version is 0.17.1. While there isn't a strict, predictable release cadence, the project demonstrates ongoing activity through consistent dependency updates and minor fixes, indicating active maintenance. Its primary utility lies in simplifying the integration of SVGs into Vue applications, allowing developers to leverage Vue's component system for features like props, slots, and reactivity. It integrates seamlessly with popular webpack-based setups such as Vue CLI and Nuxt.js, and includes internal SVG optimization capabilities via SVGO.","language":"javascript","status":"active","version":"0.17.1","tags":["javascript","vue-svg-loader-2","vue-svg-loader","svg","svgo","loader","webpack","vue"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-svg-loader-2","imports":["import MyIcon from './assets/my-icon.svg';","module.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        use: ['vue-loader', 'vue-svg-loader-2'],\n      },\n    ],\n  },\n};","module.exports = {\n  build: {\n    extend: (config) => {\n      const svgRule = config.module.rules.find(rule => rule.test.test('.svg'));\n      svgRule.test = /\\.(png|jpe?g|gif|webp)$/;\n      config.module.rules.push({\n        test: /\\.svg$/,\n        use: ['vue-loader', 'vue-svg-loader-2'],\n      });\n    },\n  },\n};"]},{"cmd":"yarn add vue-svg-loader-2","imports":[]},{"cmd":"pnpm add vue-svg-loader-2","imports":[]}],"homepage":null,"github":"https://github.com/gammacommunications/vue-svg-loader-2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-svg-loader-2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-svg-loader-2/compatibility"}}