postcss-load-config
Advanced tools
Comparing version 1.0.0-rc to 1.0.0
13
index.js
@@ -36,10 +36,14 @@ // ------------------------------------ | ||
ctx = assign(defaults, ctx) || defaults | ||
ctx = assign(defaults, ctx) | ||
path = path || process.cwd() | ||
options = options || {} | ||
if (ctx.env === undefined) { | ||
process.env.NODE_ENV = 'development' | ||
} | ||
return config('postcss', options) | ||
.load(path) | ||
.then(function (result) { | ||
if (result === undefined) { | ||
if (!result) { | ||
console.log( | ||
@@ -50,6 +54,3 @@ 'PostCSS Config could not be loaded. Please check your PostCSS Config.' | ||
result === undefined ? { config: {} } : result | ||
result = result.config | ||
return result | ||
return result ? result.config : {} | ||
}) | ||
@@ -56,0 +57,0 @@ .then(function (config) { |
{ | ||
"name": "postcss-load-config", | ||
"version": "1.0.0-rc", | ||
"version": "1.0.0", | ||
"description": "Autoload Config for PostCSS", | ||
@@ -9,3 +9,3 @@ "engines": { "node": ">=0.12", "npm": ">=3" }, | ||
"lint": "standard", | ||
"test": "nyc ava test/pkg/index.js test/rc/index.js test/js/index.js", | ||
"test": "nyc ava test/err/index.js test/pkg/index.js test/rc/index.js test/js/index.js", | ||
"logs": "standard-changelog > CHANGELOG.md", | ||
@@ -20,3 +20,3 @@ "docs": "jsdoc2md index.js > INDEX.md", | ||
"postcss-load-options": "^1.0.2", | ||
"postcss-load-plugins": "^2.0.0-rc" | ||
"postcss-load-plugins": "^2.0.0" | ||
}, | ||
@@ -32,2 +32,3 @@ "devDependencies": { | ||
"postcss-nested": "^1.0.0", | ||
"postcss-sprites": "^4.0.0", | ||
"postcss-scss": "^0.3.1", | ||
@@ -61,2 +62,6 @@ "standard": "^8.4.0", | ||
"email": "sparty02@gmail.com" | ||
}, | ||
{ | ||
"name": "Patrick Gilday", | ||
"email": "" | ||
} | ||
@@ -63,0 +68,0 @@ ], |
@@ -223,5 +223,5 @@ [![npm][npm]][npm-url] | ||
plugins: { | ||
postcss-import: null, | ||
postcss-nested: null, | ||
cssnano: ctx.env === 'development' ? false : null | ||
postcss-import: {}, | ||
postcss-nested: {}, | ||
cssnano: ctx.env === 'production' ? {} : false | ||
} | ||
@@ -316,3 +316,3 @@ } | ||
<img width="150 height="150" | ||
src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150"> | ||
src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150"> | ||
<br /> | ||
@@ -323,3 +323,3 @@ <a href="https://github.com/michael-ciniawsky">Michael Ciniawsky</a> | ||
<img width="150 height="150" | ||
src="https://avatars.githubusercontent.com/u/2437969?v=3&s=150"> | ||
src="https://avatars.githubusercontent.com/u/2437969?v=3&s=150"> | ||
<br /> | ||
@@ -338,7 +338,13 @@ <a href="https://github.com/ertrzyiks">Mateusz Derks</a> | ||
<td align="center"> | ||
<img width="150 height="150" | ||
src="https://avatars.githubusercontent.com/u/1483538?v=3&s=150"> | ||
<img width="150" height="150" | ||
src="https://avatars.githubusercontent.com/u/1483538?v=3&s=150"> | ||
<br /> | ||
<a href="https://github.com/sparty02">Ryan Dunckel</a> | ||
</td> | ||
<td align="center"> | ||
<img width="150" height="150" | ||
src="https://avatars.githubusercontent.com/u/6249643?v=3&s=150"> | ||
<br /> | ||
<a href="https://github.com/pcgilday">Patrick Gilday</a> | ||
</td> | ||
</tr> | ||
@@ -345,0 +351,0 @@ <tbody> |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13098
64
0
370
12
2
Updatedpostcss-load-plugins@^2.0.0