CHANGELOG.md in react_on_rails-9.0.0.beta.6 vs CHANGELOG.md in react_on_rails-9.0.0.beta.7
- old
+ new
@@ -16,27 +16,51 @@
- Update the gemfile. Switch over to using Webpacker on the ShakaCode branch:
```rb
gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
- branch: "issue-464-merge-webpacker-lite-into-webpacker"
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v2"
```
- Update for the renaming in the `WebpackConfigLoader` in your webpack configuration.
You will need to rename the following object properties:
- - hotReloadingUrl ==> devServerUrl
- - hotReloadingHostname ==> devServerHost
- - hotReloadingPort ==> devServerPort
+ - webpackOutputPath ==> output.path
+ - webpackPublicOutputDir ==> output.publicPath
+ - hotReloadingUrl ==> output.publicPathWithHost
+ - hotReloadingHostname ==> settings.dev_server.host
+ - hotReloadingPort ==> settings.dev_server.port
+ - hmr ==> settings.dev_server.hmr
+ - manifest ==> Remove this one. We use the default for Webpack of manifest.json
+ - env ==> Use `const { env } = require('process');
+ - devBuild ==> Use `const devBuild = process.env.NODE_ENV !== 'production';
+
+- Edit your Webpack.config files:
+ - Change your Webpack output to be like:
+ ```
+ // Leading slash is necessary
+ publicPath: `/${output.publicPath}`,
+ path: output.path,
+ ```
+ - Change your ManifestPlugin definition to include publicPath
+ ```
+ output: {
+ // Name comes from the entry section.
+ filename: '[name]-[chunkhash].js',
+
+ publicPath: output.publicPath,
+ path: output.path,
+ },
+ ```
+
+
- Find your `webpacker_lite.yml` and rename it to `webpacker.yml`
- Add a section like this under your development env:
```
dev_server:
host: localhost
- port: 8080
- https: false
- # Can be enabled by export WEBPACKER_HMR=TRUE in env
+ port: 3035
hmr: false
```
- See the example `spec/dummy/config/webpacker.yml`.
- Remove keys `hot_reloading_host` and `hot_reloading_enabled_by_default`. These are replaced by the `dev_server` key.
- Rename `webpack_public_output_dir` to `public_output_path`.
@@ -59,12 +83,25 @@
### [9.0.0]
*Diffs for the beta to master*
+### [9.0.0-beta.7]
+- Depend on updated rails/webpacker in branch
+
+gem "webpacker", git: "https://github.com/shakacode/webpacker.git",
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v2"
+
+
+### [9.0.0-beta.6]
+- Change "hot" to "hmr".
+
### [9.0.0-beta.3]
- Fix typo on webpackConfigLoader.js
+
+### [9.0.0-beta.3]
+- Fix typo on webpackConfigLoader.js
### [9.0.0-beta.2]
- Fixed problems when running in development mode for both the generator and spec/dummy.
### [9.0.0-beta.1]
@@ -686,11 +723,15 @@
- Turbolinks support.
##### Fixed
- Fix several generator related issues.
-[Unreleased]: https://github.com/shakacode/react_on_rails/compare/rails-webpacker...9.0.0-beta.3
-[9.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.3...master
+[Unreleased]: https://github.com/shakacode/react_on_rails/compare/rails-webpacker...9.0.0-beta.7
+[9.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.7...master
+[9.0.0-beta.7]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.7...9.0.0-beta.6
+[9.0.0-beta.6]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.6...9.0.0-beta.5
+[9.0.0-beta.5]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.5...9.0.0-beta.4
+[9.0.0-beta.4]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.4...9.0.0-beta.3
[9.0.0-beta.3]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.3...9.0.0-beta.2
[9.0.0-beta.2]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.2...9.0.0-beta.1
[9.0.0-beta.1]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.1...master
[8.0.6]: https://github.com/shakacode/react_on_rails/compare/8.0.5...8.0.6
[8.0.5]: https://github.com/shakacode/react_on_rails/compare/8.0.3...8.0.5