css-modules-require-hook
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -134,3 +134,3 @@ 'use strict'; | ||
var rootRelativePath = _path.sep + (0, _path.relative)(rootDir, filename); | ||
var CSSSource = preProcess((0, _fs.readFileSync)(filename, 'utf8')); | ||
var CSSSource = preProcess((0, _fs.readFileSync)(filename, 'utf8'), filename); | ||
@@ -148,3 +148,3 @@ var lazyResult = (0, _postcss2['default'])(plugins.concat(new _parser2['default']({ fetch: fetch, filename: filename, trace: trace }))).process(CSSSource, (0, _lodashAssign2['default'])(lazyResultOpts, { from: rootRelativePath })); | ||
if (postProcess) { | ||
postProcess(lazyResult.css); | ||
postProcess(lazyResult.css, filename); | ||
} | ||
@@ -151,0 +151,0 @@ |
{ | ||
"name": "css-modules-require-hook", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"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
102029