diff options
Diffstat (limited to 'config/webpack')
-rw-r--r-- | config/webpack/loaders/babel.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack/loaders/babel.js b/config/webpack/loaders/babel.js index c608e708f..e58d0633e 100644 --- a/config/webpack/loaders/babel.js +++ b/config/webpack/loaders/babel.js @@ -1,5 +1,8 @@ module.exports = { test: /\.js(\.erb)?$/, exclude: /node_modules/, - loader: 'babel-loader' + loader: 'babel-loader', + options: { + forceEnv: process.env.NODE_ENV || 'development' + } } |