diff --git a/CHANGELOG.md b/CHANGELOG.md index f596b559e..7489aa70e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ Changes since last non-beta release. *Please add entries here for your pull requests.* +## [8.0.4] +### Fixed + - Fixed `devBuild` for webpack production build. [#877](https://github.com/shakacode/react_on_rails/pull/877) by [chenqingspring](https://github.com/chenqingspring) + ## [8.0.3] ### Fixed - Ruby 2.1 issue due to `<<~` as reported in [issue #870](https://github.com/shakacode/react_on_rails/issues/870). [#867](https://github.com/shakacode/react_on_rails/pull/867) by [justin808](https://github.com/justin808) @@ -611,7 +615,8 @@ Best done with Object destructing: ##### Fixed - Fix several generator related issues. -[Unreleased]: https://github.com/shakacode/react_on_rails/compare/8.0.3...master +[Unreleased]: https://github.com/shakacode/react_on_rails/compare/8.0.4...master +[8.0.4]: https://github.com/shakacode/react_on_rails/compare/8.0.3...8.0.4 [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 diff --git a/webpackConfigLoader.js b/webpackConfigLoader.js index 0ab351b3a..7b4e2a6da 100644 --- a/webpackConfigLoader.js +++ b/webpackConfigLoader.js @@ -55,8 +55,7 @@ const configLoader = (configPath) => { const configEnv = (process.env.NODE_ENV || process.env.RAILS_ENV || 'development'); const ymlConfigPath = join(configPath, 'webpacker_lite.yml'); const configuration = safeLoad(readFileSync(ymlConfigPath, 'utf8'))[configEnv]; - - const devBuild = env !== 'production'; + const devBuild = configEnv !== 'production'; const hotReloadingHost = configuration.hot_reloading_host || DEFAULT_HOT_RELOADING_HOST; // NOTE: Rails path is hard coded to `/public`