postcss-loader
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -0,1 +1,4 @@ | ||
## 1.3 | ||
* Allow object in syntax options, not only path for require (by Jeff Escalante). | ||
## 1.2.2 | ||
@@ -2,0 +5,0 @@ * Watch `postcss.config.js` for changes (by Michael Ciniawsky). |
18
index.js
@@ -94,9 +94,21 @@ var loaderUtils = require('loader-utils'); | ||
if ( params.syntax ) { | ||
opts.syntax = require(params.syntax); | ||
if ( typeof params.syntax === 'string' ) { | ||
opts.syntax = require(params.syntax); | ||
} else { | ||
opts.syntax = params.syntax; | ||
} | ||
} | ||
if ( params.parser ) { | ||
opts.parser = require(params.parser); | ||
if ( typeof params.parser === 'string' ) { | ||
opts.parser = require(params.parser); | ||
} else { | ||
opts.parser = params.parser; | ||
} | ||
} | ||
if ( params.stringifier ) { | ||
opts.stringifier = require(params.stringifier); | ||
if ( typeof params.stringifier === 'string' ) { | ||
opts.stringifier = require(params.stringifier); | ||
} else { | ||
opts.stringifier = params.stringifier; | ||
} | ||
} | ||
@@ -103,0 +115,0 @@ |
{ | ||
"name": "postcss-loader", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "PostCSS loader for webpack", | ||
@@ -20,10 +20,10 @@ "engines": { | ||
"loader-utils": "^0.2.16", | ||
"object-assign": "^4.1.0", | ||
"postcss": "^5.2.9", | ||
"object-assign": "^4.1.1", | ||
"postcss": "^5.2.12", | ||
"postcss-load-config": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.13.1", | ||
"eslint": "^3.15.0", | ||
"eslint-config-postcss": "^2.0.2", | ||
"fs-extra": "^1.0.0", | ||
"fs-extra": "^2.0.0", | ||
"gulp": "^3.9.1", | ||
@@ -34,3 +34,3 @@ "gulp-eslint": "^3.0.1", | ||
"json-loader": "^0.5.4", | ||
"lint-staged": "^3.2.6", | ||
"lint-staged": "^3.3.0", | ||
"postcss-js": "^0.2.0", | ||
@@ -37,0 +37,0 @@ "postcss-safe-parser": "^2.0.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
16535
151
Updatedobject-assign@^4.1.1
Updatedpostcss@^5.2.12