postcss-loader
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="2.0.8"></a> | ||
## [2.0.8](https://github.com/postcss/postcss-loader/compare/v2.0.6...v2.0.8) (2017-10-14) | ||
### Bug Fixes | ||
* **lib/options:** handle `{Object}` return (`options.plugins`) ([#301](https://github.com/postcss/postcss-loader/issues/301)) ([df010a7](https://github.com/postcss/postcss-loader/commit/df010a7)) | ||
* **schema:** allow to pass an `{Object}` (`options.syntax/options.stringifier`) ([#300](https://github.com/postcss/postcss-loader/issues/300)) ([58e9996](https://github.com/postcss/postcss-loader/commit/58e9996)) | ||
<a name="2.0.7"></a> | ||
@@ -7,0 +18,0 @@ ## [2.0.7](https://github.com/postcss/postcss-loader/compare/v2.0.6...v2.0.7) (2017-10-10) |
@@ -7,15 +7,8 @@ 'use strict' | ||
this.err = err.input.source | ||
this.name = 'Syntax Error' | ||
this.name = 'Syntax Error' | ||
this.message = '' | ||
this.message += `${this.name} \n\n(${err.line}:${err.column}) ${err.reason}` | ||
this.message += `\n\n${err.showSourceCode()}\n` | ||
if (err.line) { | ||
this.message += `${this.name} \n\n(${err.line}:${err.column}) ${err.reason}` | ||
} | ||
if (err.input.source) { | ||
this.message += `\n\n${err.showSourceCode()}\n` | ||
} | ||
this.stack = false | ||
@@ -22,0 +15,0 @@ } |
@@ -12,3 +12,3 @@ 'use strict' | ||
else if (Array.isArray(params.plugins)) plugins = params.plugins | ||
else plugins = params.plugins | ||
else plugins = [ params.plugins ] | ||
@@ -15,0 +15,0 @@ const options = {} |
@@ -23,7 +23,14 @@ { | ||
"syntax": { | ||
"type": "string" | ||
"type": [ "string", "object" ] | ||
}, | ||
"stringifier": { | ||
"type": "string" | ||
"type": [ "string", "object" ] | ||
}, | ||
"plugins": { | ||
"anyOf": [ | ||
{ "type": "array" }, | ||
{ "type": "object" }, | ||
{ "instanceof": "Function" } | ||
] | ||
}, | ||
"sourceMap": { | ||
@@ -30,0 +37,0 @@ "type": [ "string", "boolean" ] |
{ | ||
"name": "postcss-loader", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "PostCSS loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,3 +34,3 @@ [![npm][npm]][npm-url] | ||
### `Config` | ||
### `Configuration` | ||
@@ -112,11 +112,11 @@ **postcss.config.js** | ||
|Name|Default|Description| | ||
|:--:|:-----:|:----------| | ||
|`exec`|`undefined`|Enable PostCSS Parser support in `CSS-in-JS`| | ||
|`parser`|`undefined`|Set PostCSS Parser| | ||
|`syntax`|`undefined`|Set PostCSS Syntax| | ||
|`stringifier`|`undefined`|Set PostCSS Stringifier| | ||
|`config`|`undefined`|Set `postcss.config.js` config path && `ctx`| | ||
|`plugins`|`[]`|Set PostCSS Plugins| | ||
|`sourceMap`|`false`|Enable Source Maps| | ||
|Name|Type|Default|Description| | ||
|:--:|:--:|:-----:|:----------| | ||
|[`exec`](#exec)|`{Boolean}`|`undefined`|Enable PostCSS Parser support in `CSS-in-JS`| | ||
|[`parser`](#syntaxes)|`{String\|Object}`|`undefined`|Set PostCSS Parser| | ||
|[`syntax`](#syntaxes)|`{String\|Object}`|`undefined`|Set PostCSS Syntax| | ||
|[`stringifier`](#syntaxes)|`{String\|Object}`|`undefined`|Set PostCSS Stringifier| | ||
|[`config`](#config)|`{Object}`|`undefined`|Set `postcss.config.js` config path && `ctx`| | ||
|[`plugins`](#plugins)|`{Array\|Function}`|`[]`|Set PostCSS Plugins| | ||
|[`sourceMap`](#sourceMap)|`{String\|Boolean}`|`false`|Enable Source Maps| | ||
@@ -140,2 +140,7 @@ ### `Exec` | ||
|Name|Type|Default|Description| | ||
|:--:|:--:|:-----:|:----------| | ||
|[`path`](#path)|`{String}`|`undefined`|PostCSS Config Path| | ||
|[`context`](#context)|`{Object}`|`undefined`|PostCSS Config Context| | ||
#### `Path` | ||
@@ -222,5 +227,5 @@ | ||
|:--:|:--:|:-----:|:----------| | ||
|`syntax`|`{String\|Function}`|`undefined`|Custom PostCSS Syntax| | ||
|`parser`|`{String\|Function}`|`undefined`|Custom PostCSS Parser| | ||
|`stringifier`|`{String\|Function}`|`undefined`|Custom PostCSS Stringifier| | ||
|[`parser`](#parser)|`{String\|Function}`|`undefined`|Custom PostCSS Parser| | ||
|[`syntax`](#syntax)|`{String\|Function}`|`undefined`|Custom PostCSS Syntax| | ||
|[`stringifier`](#stringifier)|`{String\|Function}`|`undefined`|Custom PostCSS Stringifier| | ||
@@ -227,0 +232,0 @@ #### `Parser` |
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
27096
224
469