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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+24
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,30 @@ Changes since last non-beta release.
8
8
9
9
*Please add entries here for your pull requests.*
10
10
11
+
### [9.0.0.beta.1]
12
+
- Switch over to using Webpacker
13
+
14
+
- If using the WebpackConfigLoader, you will need to rename the following object properties:
15
+
- hotReloadingUrl devServerUrl
16
+
- hotReloadingHostname devServerHost
17
+
- hotReloadingPort devServerPort
18
+
19
+
- Find your webpacker_lite.yml and rename it to webpacker.yml
20
+
- Add a section like this under your development env:
21
+
```
22
+
dev_server:
23
+
host: localhost
24
+
port: 8080
25
+
https: false
26
+
# Can be enabled by export WEBPACKER_HMR=TRUE in env
27
+
hot: false
28
+
```
29
+
- remove `hot_reloading_host` and `hot_reloading_enabled_by_default`
30
+
- rename `webpack_public_output_dir` to `public_output_path`
31
+
32
+
33
+
34
+
11
35
### [8.0.6]
12
36
#### fixed
13
37
- Fixes server rendering when using a CDN. Server rendering would try to fetch a file with the "asset_host". This change updates the webpacker_lite dependency to 2.1.0 which has a new helper `pack_path`. [#901](https://github.com/shakacode/react_on_rails/pull/901) by [justin808](https://github.com/justin808). Be sure to update webpacker_lite to 2.1.0.
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ For more testimonials, see [Live Projects](PROJECTS.md) and [Kudos](./KUDOS.md).
74
74
75
75
# NEWS
76
76
***[VERSION 8.1.0](https://rubygems.org/gems/react_on_rails/)** shipped with [webpacker_lite](https://github.com/shakacode/webpacker_lite) (soon [**webpacker**](https://github.com/rails/webpacker/issues/464#issuecomment-310986140) support! [react-webpack-rails-tutorial PR #395](https://github.com/shakacode/react-webpack-rails-tutorial/pull/395) shows the changes needed to migrate from the Asset Pipeline to Webpacker Lite. For more information, see my article: [Webpacker Lite: Why Fork Webpacker?](https://blog.shakacode.com/webpacker-lite-why-fork-webpacker-f0a7707fac92). Per recent discussions, we [will merge Webpacker Lite changes back into Webpacker](https://github.com/rails/webpacker/issues/464#issuecomment-310986140). There's no reason to wait for this. The upgrade will eventually be trivial.
77
-
* The Docs here on `master` refer to 8.1.0 including support for [webpacker_lite](https://github.com/shakacode/webpacker_lite)!
77
+
* The Docs here on `master` refer to 9.0.0 including support for [webpacker](https://github.com/shakacode/webpacker)!
78
78
*Use the [7.0.4 docs](https://github.com/shakacode/react_on_rails/tree/7.0.4) to refer to the older asset pipeline way.*
79
79
**See [NEWS.md](NEWS.md) for more notes over time.*
80
80
@@ -124,7 +124,7 @@ See the [react-webpack-rails-tutorial](https://github.com/shakacode/react-webpac
124
124
125
125
## Why Webpack?
126
126
127
-
Webpack is used to generate JavaScript and CSS "bundles" directly to your `/public` directory. [webpacker_lite](https://github.com/shakacode/webpacker_lite) provides view helpers to access the Webpack generated (and fingerprinted) JS and CSS. These files totally skip the Rails asset pipeline. You are responsible for properly processing your Webpack output via the Webpack config files.
127
+
Webpack is used to generate JavaScript and CSS "bundles" directly to your `/public` directory. [webpacker](https://github.com/rails/webpacker) provides view helpers to access the Webpack generated (and fingerprinted) JS and CSS. These files totally skip the Rails asset pipeline. You are responsible for properly processing your Webpack output via the Webpack config files.
128
128
129
129
This usage of webpack fits neatly and simply into existing Rails apps. You can include React components on a Rails view with a simple helper.
Copy file name to clipboardExpand all lines: docs/api/ruby-api-hot-reload-view-helpers.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## NOTE: These helpers are NOT needed if using webpacker_lite
1
+
## NOTE: These helpers are NOT needed if using webpacker
2
2
3
3
## Hot Reloading View Helpers
4
4
The `env_javascript_include_tag` and `env_stylesheet_link_tag` support the usage of a webpack dev server for providing the JS and CSS assets during development mode. See the [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/) for a working example.
Copy file name to clipboardExpand all lines: docs/basics/installation-overview.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The default path: `public/webpack` can be loaded with webpackConfigLoader as sho
23
23
1. You create scripts in `client/package.json` per the example apps. These are used for building your Webpack assets. Also do this for your top level `package.json`.
24
24
25
25
## Rails Steps (outside of /client)
26
-
1. Add `gem "webpacker_lite"` to the Gemfile, run bundle. The gem provides the `stylesheet_pack_tag` and `javascript_pack_tag` helpers which is used to load the bundled assets to your layouts.[Dummy Example](../../spec/dummy/app/views/layouts/application.html.erb)
26
+
1. Add `gem "webpacker"` to the Gemfile, run bundle. The gem provides the `stylesheet_pack_tag` and `javascript_pack_tag` helpers which is used to load the bundled assets to your layouts.[Dummy Example](../../spec/dummy/app/views/layouts/application.html.erb)
27
27
1. Configure the `config/initializers/react_on_rails.rb`. You can adjust some necessary settings and defaults. See file [spec/dummy/config/initializers/react_on_rails.rb](../../spec/dummy/config/initializers/react_on_rails.rb) for a detailed example of configuration, including comments on the different values to configure.
28
28
1. Configure your Procfiles per the example apps. These are at the root of your Rails installation.
29
29
1. Configure your top level JavaScript files for inclusion in your layout. You'll want a version that you use for static assets, and you want a file for any files in your setup that are not part of your webpack build. The reason for this is for use with hot-reloading. If you are not using hot reloading, then you only need to configure your `application.js` file to include your Webpack generated files. For more information on hot reloading, see [Hot Reloading of Assets For Rails Development](../additional-reading/hot-reloading-rails-development.md)
0 commit comments