postcss-loader
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/postcss/postcss-loader/compare/v2.0.1...v2.0.2) (2017-05-09) | ||
### Bug Fixes | ||
* **index:** 'No PostCSS Config found' (`options.config`) (#215) ([e764761](https://github.com/postcss/postcss-loader/commit/e764761)) | ||
<a name="2.0.1"></a> | ||
@@ -7,0 +17,0 @@ ## [2.0.1](https://github.com/postcss/postcss-loader/compare/v2.0.0...v2.0.1) (2017-05-08) |
@@ -75,8 +75,14 @@ 'use strict' | ||
Promise.resolve().then(() => { | ||
if ( | ||
Object.keys(options).length !== 0 || | ||
((rc || sourceMap) && Object.keys(options).length > 1) || | ||
((rc && sourceMap) && Object.keys(options).length > 2) | ||
) { | ||
const length = Object.keys(options).length | ||
// TODO | ||
// Deuglify | ||
if (!options.config && !sourceMap && length) { | ||
return parseOptions.call(this, options) | ||
} else if (options.config && !sourceMap && length > 1) { | ||
return parseOptions.call(this, options) | ||
} else if (!options.config && sourceMap && length > 1) { | ||
return parseOptions.call(this, options) | ||
} else if (options.config && sourceMap && length > 2) { | ||
return parseOptions.call(this, options) | ||
} | ||
@@ -83,0 +89,0 @@ |
{ | ||
"name": "postcss-loader", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "PostCSS loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -172,6 +172,6 @@ [![npm][npm]][npm-url] | ||
module.exports = ({ file, options, env }) => ({ | ||
parser: file.extname === '.sss' ? 'sugarss' : false | ||
parser: file.extname === '.sss' ? 'sugarss' : false, | ||
plugins: { | ||
'postcss-import': { root: file.dirname }, | ||
'cssnext': options.cssnext ? options.cssnext : false, | ||
'postcss-cssnext': options.cssnext ? options.cssnext : false, | ||
'autoprefixer': env == 'production' ? options.autoprefixer : false, | ||
@@ -232,3 +232,3 @@ 'cssnano': env === 'production' ? options.cssnano : false | ||
..., | ||
{ loader: 'postcss-loader' options: { parser: 'sugarss' } } | ||
{ loader: 'postcss-loader', options: { parser: 'sugarss' } } | ||
] | ||
@@ -246,3 +246,3 @@ } | ||
..., | ||
{ loader: 'postcss-loader' options: { syntax: 'sugarss' } } | ||
{ loader: 'postcss-loader', options: { syntax: 'sugarss' } } | ||
] | ||
@@ -260,3 +260,3 @@ } | ||
..., | ||
{ loader: 'postcss-loader' options: { stringifier: 'midas' } } | ||
{ loader: 'postcss-loader', options: { stringifier: 'midas' } } | ||
] | ||
@@ -278,5 +278,5 @@ } | ||
{ loader: 'style-loader', options: { sourceMap: true } }, | ||
{ loader: 'css-loader' options: { sourceMap: true } }, | ||
{ loader: 'postcss-loader' options: { sourceMap: true } }, | ||
{ loader: 'sass-loader' options: { sourceMap: true } } | ||
{ loader: 'css-loader', options: { sourceMap: true } }, | ||
{ loader: 'postcss-loader', options: { sourceMap: true } }, | ||
{ loader: 'sass-loader', options: { sourceMap: true } } | ||
] | ||
@@ -368,3 +368,3 @@ } | ||
'style-loader', | ||
{ loader: 'css-loader' options: { importLoaders: 2 } }, | ||
{ loader: 'css-loader', options: { importLoaders: 2 } }, | ||
{ loader: 'postcss-loader', options: { parser: 'postcss-js' } }, | ||
@@ -415,3 +415,3 @@ 'babel-loader' | ||
use: [ | ||
{ loader: 'css-loader' options: { importLoaders: 1 } }, | ||
{ loader: 'css-loader', options: { importLoaders: 1 } }, | ||
'postcss-loader' | ||
@@ -469,2 +469,2 @@ ] | ||
[chat]: https://badges.gitter.im/postcss/postcss.svg | ||
[chat-url]: https://gitter.im/postcss/postcss | ||
[chat-url]: https://gitter.im/postcss/postcss |
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
23047
217
463