You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Lets you use [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html), [ES6](http://es6-features.org/), [TypeScript](https://www.typescriptlang.org/), [CoffeeScript](http://coffeescript.org/)
18
18
@@ -92,20 +92,20 @@ _Alternatively, get started with [Sprockets](#use-with-asset-pipeline)_
92
92
Prevent installing default javascript dependencies by using `--skip-javascript` option:
93
93
94
94
```bash
95
-
$ rails new my-app --skip-javascript
96
-
$ cd my-app
95
+
rails new my-app --skip-javascript
96
+
cd my-app
97
97
```
98
98
99
99
2. Install `shakapacker`:
100
100
```bash
101
-
$ bundle add shakapacker --strict
102
-
$ rails webpacker:install
101
+
bundle add shakapacker --strict
102
+
rails shakapacker:install
103
103
```
104
104
105
105
3. Install `react` and some other required npm packages:
Also update the Babel configuration in the `package.json` file:
@@ -169,7 +169,7 @@ Output: greeting: Hello from react-rails", inspect webpage in your browser to se
169
169
In order to run dev server with HMR feature you need to parallely run:
170
170
171
171
```bash
172
-
$ ./bin/webpacker-dev-server
172
+
$ ./bin/shakapacker-dev-server
173
173
```
174
174
175
175
Note: On Rails 6 you need to specify `webpack-dev-server` host. To this end, update `config/initializers/content_security_policy.rb` and uncomment relevant lines.
@@ -780,7 +780,7 @@ For example, to change the [ES6 Component template](https://github.com/reactjs/r
780
780
781
781
### 2.7 to 3.0
782
782
- Keep your `react_ujs` up to date: `yarn upgrade`
783
-
-**Drop support for Webpacker:** Before any ReactRails upgrade, make sure upgrading from Webpacker to Shakapacker 6.x.
783
+
-**Drop support for Webpacker:** Before any ReactRails upgrade, make sure upgrading from Webpacker to Shakapacker 7. For more information check out Shakapacker
784
784
-**SSR:** ReactRails 3.x requires separate compilations for server & client bundles. See [Webpack config](https://github.com/reactjs/react-rails/tree/master/test/dummy/config/webpack) directory in the dummy app to addapt the new implementation.
0 commit comments