css-modules-require-hook
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -88,2 +88,12 @@ 'use strict'; | ||
var extraExtensions = (0, _utility.get)('extensions', null, 'array', opts); | ||
if (extraExtensions) { | ||
extraExtensions.forEach(function (extension) { | ||
(0, _hook2['default'])(function (filename) { | ||
return fetch(filename, filename); | ||
}, extension); | ||
}); | ||
} | ||
// Warning. Options, which aren't affected by plugins, should be processed above. | ||
var customPlugins = (0, _utility.get)('use', ['u'], 'array', opts); | ||
@@ -104,11 +114,2 @@ if (customPlugins) { | ||
plugins.push(generateScopedName ? new _postcssModulesScope2['default']({ generateScopedName: opts.generateScopedName }) : _postcssModulesScope2['default']); | ||
var extraExtensions = (0, _utility.get)('extensions', null, 'array', opts); | ||
if (extraExtensions) { | ||
extraExtensions.forEach(function (extension) { | ||
(0, _hook2['default'])(function (filename) { | ||
return fetch(filename, filename); | ||
}, extension); | ||
}); | ||
} | ||
} | ||
@@ -115,0 +116,0 @@ |
{ | ||
"name": "css-modules-require-hook", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A require hook to compile CSS Modules on the fly", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
102009
638