As above, the raw SVGs are available in the repo for use in other contexts.The only difference is where the icons are stored and how we determine the icon name from the file name. Optionally import the icon components automaticallyĪs with the first approach, we also have the option of automatically populating the icons object by looping over the icons on the filesystem. But it is a pretty simple plugin that uses the official vue-template-compiler under the hood so I don't see this as a big deal. vue-svg-loader does not appear to be very widely used.SVG images will no longer be handled by file-loader so using them with will not work.svg files, before then configuring vue-svg-loader to handle them instead. Webpack configuration is required for Vue CLI (and Storybook if you're using it) to remove the existing loader for.on static HTML pages, PDFs, emails, etc.) Pure SVG files are maintained in the repo and can be used outside of Vue context (e.g.svg files rather than needing to manually wrap them in their own component. This component is almost identical to the first approach, with the only difference being that we're able to directly require the.
0 Comments
Leave a Reply. |