Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg-sprite-loader

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-sprite-loader - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

3

config.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc