react-on-rails
Advanced tools
Comparing version 9.0.0-rc.0 to 9.0.0
@@ -17,2 +17,4 @@ # Change Log | ||
For an example of upgrading, see [react-webpack-rails-tutorial/pull/416](https://github.com/shakacode/react-webpack-rails-tutorial/pull/416). | ||
- Breaking Configuration Changes | ||
@@ -39,4 +41,4 @@ 1. Added `config.node_modules_location` which defaults to `""` if Webpacker is installed. You may want to set this to 'client'` to `config/initializers/react_on_rails.rb` to keep your node_modules inside of `/client` | ||
- 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'; | ||
- env ==> Use `const { env } = require('process');` | ||
- devBuild ==> Use `const devBuild = process.env.NODE_ENV !== 'production';` | ||
@@ -49,2 +51,3 @@ - Edit your Webpack.config files: | ||
const { output, settings } = webpackConfigLoader(configPath); | ||
const hmr = settings.dev_server.hmr; | ||
const devBuild = process.env.NODE_ENV !== 'production'; | ||
@@ -70,2 +73,5 @@ | ||
- Find your `webpacker_lite.yml` and rename it to `webpacker.yml` | ||
- Consider copying a default webpacker.yml setup such as https://github.com/shakacode/react-on-rails-v9-rc-generator/blob/master/config/webpacker.yml | ||
- If you are not using the webpacker webpacker setup, be sure to put in `compile: false` in the `default` section. | ||
- Alternately, if you are updating from webpacker_lite, you can manually change these: | ||
- Add a default setting | ||
@@ -72,0 +78,0 @@ ``` |
{ | ||
"name": "react-on-rails", | ||
"version": "9.0.0-rc.0", | ||
"version": "9.0.0", | ||
"description": "react-on-rails JavaScript for react_on_rails Ruby gem", | ||
@@ -5,0 +5,0 @@ "main": "node_package/lib/ReactOnRails.js", |
@@ -7,6 +7,6 @@ [![Build Status](https://travis-ci.org/shakacode/react_on_rails.svg?branch=master)](https://travis-ci.org/shakacode/react_on_rails) [![Codeship Status for shakacode/react_on_rails](https://app.codeship.com/projects/cec6c040-971f-0134-488f-0a5146246bd8/status?branch=master)](https://app.codeship.com/projects/187011) [![Dependency Status](https://gemnasium.com/shakacode/react_on_rails.svg)](https://gemnasium.com/shakacode/react_on_rails) [![Gem Version](https://badge.fury.io/rb/react_on_rails.svg)](https://badge.fury.io/rb/react_on_rails) [![npm version](https://badge.fury.io/js/react-on-rails.svg)](https://badge.fury.io/js/react-on-rails) [![Code Climate](https://codeclimate.com/github/shakacode/react_on_rails/badges/gpa.svg)](https://codeclimate.com/github/shakacode/react_on_rails) [![Coverage Status](https://coveralls.io/repos/shakacode/react_on_rails/badge.svg?branch=master&service=github)](https://coveralls.io/github/shakacode/react_on_rails?branch=master) | ||
# React on Rails v9 beta 12 is based on Webpacker 3.0! | ||
# React on Rails v9 is based on Webpacker 3.0! | ||
* See the updated [Tutorial](https://github.com/shakacode/react_on_rails/blob/rails-webpacker/docs/tutorial.md). | ||
* I'm grateful for any [PR 908 reviews](https://github.com/shakacode/react_on_rails/pull/908). | ||
* See the [CHANGELOG.md](https://github.com/shakacode/react_on_rails/blob/rails-webpacker/CHANGELOG.md) for migration instructions. | ||
@@ -13,0 +13,0 @@ ## Steps to a New App with rails/webpacker v3 plus React on Rails v9.beta: |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
147252
0