ignore-styles
Advanced tools
Comparing version 4.0.0 to 5.0.0
{ | ||
"name": "ignore-styles", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "Ignore imported style files when running in Node", | ||
@@ -5,0 +5,0 @@ "main": "lib/ignore-styles.js", |
@@ -58,3 +58,3 @@ # ignore-styles | ||
```js | ||
require('ignore-styles')(['.sass', '.scss']) | ||
require('ignore-styles').default(['.sass', '.scss']); | ||
``` | ||
@@ -86,5 +86,8 @@ | ||
```js | ||
const _ = require('lodash'); | ||
const path = require('path'); | ||
register(undefined, (module, filename) => { | ||
if (_.some(['.png', '.jpg'], ext => filename.endsWith(ext))) { | ||
return path.basename(filename) | ||
module.exports = path.basename(filename); | ||
} | ||
@@ -91,0 +94,0 @@ }) |
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
12390
117