postcss-loader
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,4 @@ | ||
## 1.2.1 | ||
* Fix relative `config` parameter resolving (by Simen Bekkhus). | ||
## 1.2 | ||
@@ -2,0 +5,0 @@ * Add `config` parameter (by sainthkh). |
13
index.js
@@ -51,5 +51,14 @@ var loaderUtils = require('loader-utils'); | ||
var callback = loader.async(); | ||
var configPath = params.config ? | ||
path.join(process.cwd(), params.config) : path.dirname(file); | ||
var configPath; | ||
if (params.config) { | ||
if (path.isAbsolute(params.config)) { | ||
configPath = params.config; | ||
} else { | ||
configPath = path.join(process.cwd(), params.config); | ||
} | ||
} else { | ||
configPath = path.dirname(file); | ||
} | ||
Promise.resolve().then(function () { | ||
@@ -56,0 +65,0 @@ if ( typeof options !== 'undefined' ) { |
{ | ||
"name": "postcss-loader", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "PostCSS loader for webpack", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
14474
138