ignore-styles
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "ignore-styles", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Ignore imported style files when running in Node", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -21,2 +21,24 @@ # ignore-styles | ||
This should work for more than just the "css" extension, because `ignore-styles` | ||
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). | ||
You can also use it just like `babel/register`: | ||
import 'ignore-styles' | ||
Or in ES5: | ||
require('ignore-styles') | ||
To customize the extensions used: | ||
import register from 'ignore-styles' | ||
register(['.sass', '.scss']) | ||
To customize the extensions in ES5: | ||
require('ignore-styles')(['.sass', '.scss']) | ||
Enjoy! | ||
@@ -32,1 +54,2 @@ | ||
[package-url]: https://npmjs.org/package/ignore-styles | ||
[default-extensions]: https://github.com/bkonkle/ignore-styles/blob/master/ignore-styles.js#L1 |
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
9813
13
54