CHANGELOG.md in react_on_rails-9.0.0.beta.10 vs CHANGELOG.md in react_on_rails-9.0.0.beta.11
- old
+ new
@@ -16,11 +16,11 @@
- 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-v3"
+ branch: "issue-464-merge-webpacker-lite-into-webpacker-v5"
```
- Update for the renaming in the `WebpackConfigLoader` in your webpack configuration.
You will need to rename the following object properties:
- webpackOutputPath ==> output.path
@@ -34,31 +34,35 @@
- 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
- ```
+ const webpackConfigLoader = require('react-on-rails/webpackConfigLoader');
+ const configPath = resolve('..', 'config');
+ const { output, settings } = webpackConfigLoader(configPath);
+ const devBuild = process.env.NODE_ENV !== 'production';
+
output: {
- // Name comes from the entry section.
- filename: '[name]-[chunkhash].js',
+ filename: isHMR ? '[name]-[hash].js' : '[name]-[chunkhash].js',
+ chunkFilename: '[name]-[chunkhash].chunk.js',
publicPath: output.publicPath,
path: output.path,
},
+ ```
+ - Change your ManifestPlugin definition to something like the following
+ ```
+ new ManifestPlugin({
+ publicPath: output.publicPath,
+ writeToFileEmit: true
+ }),
```
-
- Find your `webpacker_lite.yml` and rename it to `webpacker.yml`
- Add a default setting
```
- custom_compile: true
cache_manifest: false
```
- For production, set:
```
cache_manifest: true
@@ -68,10 +72,11 @@
dev_server:
host: localhost
port: 3035
hmr: false
```
+ Set hmr to your preference.
- 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`.
- Edit your Procfile.dev
@@ -742,20 +747,22 @@
- Turbolinks support.
##### Fixed
- Fix several generator related issues.
-[Unreleased]: https://github.com/shakacode/react_on_rails/compare/rails-webpacker...9.0.0-beta.8
-[9.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.9...master
-[9.0.0-beta.9]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.9...9.0.0-beta.8
-[9.0.0-beta.8]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.8...9.0.0-beta.7
-[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
+[Unreleased]: https://github.com/shakacode/react_on_rails/compare/rails-webpacker...9.0.0-beta.11
+[9.0.0]: https://github.com/shakacode/react_on_rails/compare/master...9.0.0-beta.11
+[9.0.0-beta.11]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.10...9.0.0-beta.11
+[9.0.0-beta.10]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.9...9.0.0-beta.10
+[9.0.0-beta.9]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.8...9.0.0-beta.9
+[9.0.0-beta.8]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.7...9.0.0-beta.8
+[9.0.0-beta.7]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.6...9.0.0-beta.7
+[9.0.0-beta.6]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.5...9.0.0-beta.6
+[9.0.0-beta.5]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.4...9.0.0-beta.5
+[9.0.0-beta.4]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.3...9.0.0-beta.4
+[9.0.0-beta.3]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.2...9.0.0-beta.3
+[9.0.0-beta.2]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.1...9.0.0-beta.2
+[9.0.0-beta.1]: https://github.com/shakacode/react_on_rails/compare/master...9.0.0-beta.1
[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
[8.0.3]: https://github.com/shakacode/react_on_rails/compare/8.0.2...8.0.3
[8.0.2]: https://github.com/shakacode/react_on_rails/compare/8.0.1...8.0.2
[8.0.1]: https://github.com/shakacode/react_on_rails/compare/8.0.0...8.0.1