svg-sprite-loader
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -20,3 +20,4 @@ var path = require('path'); | ||
extract: false, | ||
esModule: false | ||
esModule: false, | ||
regExp: null | ||
}; |
@@ -35,3 +35,4 @@ var path = require('path'); | ||
context: this.options.context, | ||
content: content | ||
content: content, | ||
regExp: config.regExp | ||
}); | ||
@@ -38,0 +39,0 @@ if (config.name.indexOf('[pathhash]') !== -1) |
{ | ||
"name": "svg-sprite-loader", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "SVG sprite webpack loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,2 +45,18 @@ # Webpack SVG sprite loader | ||
``` | ||
or | ||
```js | ||
module.exports = { | ||
module: { | ||
loaders: [{ | ||
test: /\.svg$/, | ||
loader: 'svg-sprite?' + JSON.stringify({ | ||
name: 'icon-[1]', | ||
prefixize: true, | ||
regExp: './my-folder/(.*)\\.svg' | ||
}) | ||
}] | ||
} | ||
}; | ||
// path-to-project/my-foleder/name.svg > #icon-name | ||
``` | ||
@@ -47,0 +63,0 @@ ## Configuration |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24978
572
154