Skip to content

Commit

Permalink
Merge pull request ManageIQ#4341 from himdel/webpack-environment
Browse files Browse the repository at this point in the history
Remove Redux environment warning in production
  • Loading branch information
mzazrivec committed Jul 25, 2018
2 parents 198c28c + 4caf5a3 commit 5a90cdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//= require bower_components/angular-bootstrap/ui-bootstrap-tpls
//= require angular-sanitize
//= require angular.validators/angular.validators
//= require ng-redux/dist/ng-redux
//= require bower_components/moment/moment
//= require bower_components/moment-strftime/lib/moment-strftime
//= require bower_components/moment-timezone/moment-timezone
Expand Down
1 change: 1 addition & 0 deletions app/javascript/packs/application-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// layout file, like app/views/layouts/application.html.erb

import 'proxy-polyfill';
import 'ng-redux';

import { mount } from '../react/mounter';
import componentRegistry from '../react/componentRegistry';
Expand Down
4 changes: 3 additions & 1 deletion config/webpack/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ module.exports = {
},

plugins: [
new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(env.NODE_ENV || 'development'),
}),

// Workaround for graphql/graphql-language-service#128
new webpack.ContextReplacementPlugin(
Expand Down

0 comments on commit 5a90cdc

Please sign in to comment.