diff --git a/CHANGELOG.md b/CHANGELOG.md index 422c70c7..47d2e343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [2.1.2](https://github.com/postcss/postcss-loader/compare/v2.1.1...v2.1.2) (2018-03-17) + + +### Bug Fixes + +* **options:** disallow additional properties and add `ident` to validation ([#346](https://github.com/postcss/postcss-loader/issues/346)) ([82ef553](https://github.com/postcss/postcss-loader/commit/82ef553)) + + + ## [2.1.1](https://github.com/postcss/postcss-loader/compare/v2.1.0...v2.1.1) (2018-02-26) diff --git a/README.md b/README.md index de3050ba..f331fc7a 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ module.exports = ({ file, options, env }) => ({ plugins: { 'postcss-import': { root: file.dirname }, 'postcss-cssnext': options.cssnext ? options.cssnext : false, - 'autoprefixer': env == 'production' ? options.autoprefixer : false, + 'autoprefixer': env === 'production' ? options.autoprefixer : false, 'cssnano': env === 'production' ? options.cssnano : false } }) diff --git a/lib/options.json b/lib/options.json index f1b194aa..0d63647b 100644 --- a/lib/options.json +++ b/lib/options.json @@ -16,6 +16,9 @@ "exec": { "type": "boolean" }, + "ident": { + "type": "string" + }, "parser": { "type": [ "string", "object" ] }, @@ -36,5 +39,5 @@ "type": [ "string", "boolean" ] } }, - "additionalProperties": true + "additionalProperties": false } diff --git a/package.json b/package.json index cb639960..1d9316cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "postcss-loader", - "version": "2.1.1", + "version": "2.1.2", "description": "PostCSS loader for webpack", "main": "lib/index.js", "engines": {