From 88c9da5b1d24b7ba0dade80b2d0b14964c86c356 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Tue, 9 Oct 2018 08:10:58 -0400 Subject: [PATCH] 3.0.1 --- CHANGELOG.md | 4 ++++ index.js | 2 +- package.json | 18 +++++++++--------- test-cra1/package.json | 10 ++++------ test-cra2/package.json | 10 ++++------ 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3928bde..107d8d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changes to React App Rewire PostCSS +### 3.0.1 (October 9, 2018) + +- Fixed: Issue with `build` + ### 3.0.0 (October 3, 2018) - Updated: Support for Create React App 2. diff --git a/index.js b/index.js index e8a8b64..1efebd8 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ export default (config, options) => { // find any first matching rule that contains postcss-loader filterPostCSSLoader(config.module.rules).forEach(rule => { filterPostCSSLoader(rule.oneOf).forEach(oneOf => { - filterPostCSSLoader(oneOf.use).forEach(use => { + filterPostCSSLoader(oneOf.use || oneOf.loader).forEach(use => { // use the latest version of postcss-loader use.loader = require.resolve('postcss-loader'); diff --git a/package.json b/package.json index f3c18d8..b8765e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-app-rewire-postcss", - "version": "3.0.0", + "version": "3.0.1", "description": "Configure PostCSS in Create React App without ejecting", "author": "Jonathan Neal ", "license": "CC0-1.0", @@ -28,14 +28,14 @@ "postcss-loader": "^3.0.0" }, "devDependencies": { - "@babel/core": "^7.1.2", - "@babel/preset-env": "^7.1.0", - "babel-eslint": "^10.0.1", - "eslint": "^5.6.1", - "eslint-config-dev": "^2.0.0", - "pre-commit": "^1.2.2", - "rollup": "^0.66.3", - "rollup-plugin-babel": "^4.0.1" + "@babel/core": "7.1.2", + "@babel/preset-env": "7.1.0", + "babel-eslint": "9.0.0", + "eslint": "5.6.0", + "eslint-config-dev": "2.0.0", + "pre-commit": "1.2.2", + "rollup": "0.66.5", + "rollup-plugin-babel": "4.0.3" }, "eslintConfig": { "extends": "dev", diff --git a/test-cra1/package.json b/test-cra1/package.json index df93917..56856e6 100644 --- a/test-cra1/package.json +++ b/test-cra1/package.json @@ -3,7 +3,10 @@ "version": "0.1.0", "private": true, "dependencies": { + "postcss-preset-env": "^6.0.10", "react": "^16.5.2", + "react-app-rewire-postcss": "..", + "react-app-rewired": "^1.6.2", "react-dom": "^16.5.2", "react-scripts": "1.1.5" }, @@ -21,10 +24,5 @@ "not dead", "not ie <= 11", "not op_mini all" - ], - "devDependencies": { - "postcss-preset-env": "^6.0.10", - "react-app-rewire-postcss": "..", - "react-app-rewired": "^1.6.2" - } + ] } diff --git a/test-cra2/package.json b/test-cra2/package.json index aa81b01..89a34ee 100644 --- a/test-cra2/package.json +++ b/test-cra2/package.json @@ -4,8 +4,10 @@ "private": true, "dependencies": { "react": "^16.5.2", + "react-app-rewire-postcss": "..", + "react-app-rewired": "^1.6.2", "react-dom": "^16.5.2", - "react-scripts": "2.0.3" + "react-scripts": "2.0.4" }, "scripts": { "start": "react-app-rewired start", @@ -21,9 +23,5 @@ "not dead", "not ie <= 11", "not op_mini all" - ], - "devDependencies": { - "react-app-rewire-postcss": "..", - "react-app-rewired": "^1.6.2" - } + ] }