A simple webpack loader for importing SVG files directly as inline SVG strings or elements. Version 0.0.2 is the latest; this is an unofficial, likely low-maintenance loader. It provides a basic alternative to more feature-rich loaders like svg-inline-loader or raw-loader. Bundles as inline SVG, but lacks advanced optimization and caching features. Consider svgo-loader for optimization or @svgr/webpack for React components instead.
npm install svg-loaderVerified import paths — ran on the pinned version, not inferred.
Configures webpack to use svg-loader for SVG files; then import SVG files to get their content as strings.
Ensure SVGs are well-formed; use additional validation or preprocessing.
Use dangerouslySetInnerHTML for HTML rendering, or switch to @svgr/webpack for React usage.
Sanitize SVGs before use, or switch to a loader with SVGO integration like svgo-loader.
Add a rule for /\\\.svg$/ with 'svg-loader' in webpack config.
Run 'npm install svg-loader' or 'yarn add svg-loader'.
No dependency data recorded yet.