From 4a5fac9bdd662645c254c419a4363240acb54239 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sun, 14 Oct 2018 14:49:11 -1000 Subject: [PATCH 1/3] Create upgrade-v4.md --- docs/upgrade-v4.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/upgrade-v4.md diff --git a/docs/upgrade-v4.md b/docs/upgrade-v4.md new file mode 100644 index 000000000..0260c0497 --- /dev/null +++ b/docs/upgrade-v4.md @@ -0,0 +1,8 @@ +The following steps can be followed to update a Webpacker v3.5 app to v4. + +Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files) + +1. Update the gem `webpacker` and the package `@rails/webpacker` +1. Merge changes from the new default [.babelrc](../lib/install/config/.babelrc) to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`. +1. Copy the file [.browserslistrc](../lib/install/config/.browserslistrc) to `/`. +1. Merge any differences between [config/webpacker.yml](../lib/install/config/webpacker.yml) and your `/config/webpacker.yml`. From 05606f2aaa639f23d1b13bf85d2fd9c9a719515d Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sun, 14 Oct 2018 14:53:09 -1000 Subject: [PATCH 2/3] Update upgrade-v4.md --- docs/upgrade-v4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/upgrade-v4.md b/docs/upgrade-v4.md index 0260c0497..2426523c3 100644 --- a/docs/upgrade-v4.md +++ b/docs/upgrade-v4.md @@ -1,8 +1,8 @@ The following steps can be followed to update a Webpacker v3.5 app to v4. -Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files) - 1. Update the gem `webpacker` and the package `@rails/webpacker` 1. Merge changes from the new default [.babelrc](../lib/install/config/.babelrc) to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`. 1. Copy the file [.browserslistrc](../lib/install/config/.browserslistrc) to `/`. 1. Merge any differences between [config/webpacker.yml](../lib/install/config/webpacker.yml) and your `/config/webpacker.yml`. + +Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files). From f192d740378a575d8ae318678f2a3a7471476f48 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Wed, 17 Oct 2018 19:57:46 -1000 Subject: [PATCH 3/3] Update upgrade-v4.md --- docs/upgrade-v4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/upgrade-v4.md b/docs/upgrade-v4.md index 2426523c3..251b4fa66 100644 --- a/docs/upgrade-v4.md +++ b/docs/upgrade-v4.md @@ -4,5 +4,6 @@ The following steps can be followed to update a Webpacker v3.5 app to v4. 1. Merge changes from the new default [.babelrc](../lib/install/config/.babelrc) to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`. 1. Copy the file [.browserslistrc](../lib/install/config/.browserslistrc) to `/`. 1. Merge any differences between [config/webpacker.yml](../lib/install/config/webpacker.yml) and your `/config/webpacker.yml`. +1. Merge changes from the new default [postcssrc.ym](../lib/install/config/postcssrc.yml). Specifically, rename `postcss-cssnext` to ` postcss-preset-env`. Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files).