ignore-styles
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ignore-styles", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Ignore imported style files when running in Node", | ||
"main": "lib/ignore-styles.js", | ||
"scripts": { | ||
@@ -6,0 +7,0 @@ "test": "mocha --compilers js:babel-register", |
@@ -22,22 +22,36 @@ # ignore-styles | ||
This should work for more than just the "css" extension, because `ignore-styles` | ||
automatically registers itself for a number of extensions (see | ||
automatically registers itself for a number of extensions. See | ||
[DEFAULT_EXTENSIONS][default-extensions] for the full list, and send a pull | ||
request if you need more). | ||
request if you need more. | ||
## More Examples | ||
To use this with multiple Mocha compilers: | ||
mocha --compilers js:babel-register,css:ignore-styles | ||
You can also use it just like `babel/register`: | ||
```javascript | ||
import 'ignore-styles' | ||
``` | ||
Or in ES5: | ||
In ES5: | ||
```javascript | ||
require('ignore-styles') | ||
``` | ||
To customize the extensions used: | ||
```javascript | ||
import register from 'ignore-styles' | ||
register(['.sass', '.scss']) | ||
``` | ||
To customize the extensions in ES5: | ||
```javascript | ||
require('ignore-styles')(['.sass', '.scss']) | ||
``` | ||
@@ -44,0 +58,0 @@ Enjoy! |
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
10036
68