svg-inline-loader
svg-inline-loader copied to clipboard
Inline SVG loader with cleaning-up functionality
Currently createIdPrefix for tag attributes only works if the `url(#foo)` is the only value. e.g: ``` ``` This commit adds support for the following. ``` ```
Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage,...
Our use case requires us to clean up our SVG assets to prepare them for inlining, but then to provide our application with a URL to the cleaned up SVG...
Bumps [standard-version](https://github.com/conventional-changelog/standard-version) from 4.4.0 to 8.0.1. Release notes Sourced from standard-version's releases. standard-version v8.0.1 Bug Fixes deps: update dependency conventional-changelog to v3.1.21 (#586) (fd456c9) deps: update dependency conventional-changelog-conventionalcommits to v4.3.0...
The previous regular expression had two issues: 1. It was only able to remove 1-line comments. 2. It was not set to be ungreedy, and could potentially remove content between...
This allows prefixed ids to appear within embedded styles: ``` .foo { clip-path: url(#some-id); ... } ```
interpolateFileName needs the loader context in order to correctly interpolate [name], [path] etc. This change passes the context to getExtractedSVG which uses it to interpolate the name for idPrefix and...
Hello, there. As I'm using ES6 imports but transpile my output to ES5, I encounter the `.default` phenomenon. I fixed this by providing config flags, I just copied the option...
To make svgs more accessible to people with screen readers, we can make use of a few elements and attributes: - `` to set a title for the image -...