about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-05 19:18:23 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-06 04:18:23 +0200
commit37caf0b36e90e7ec6219dcaaf6cdf4e1a2825cce (patch)
treebb24703668f901a16c116e531cc938ea621e36f0 /config
parentcf0b7532097e7a59d59ea71a89ba39f8a4ab62ad (diff)
separate .babelrc for prod/dev, add babel-plugin-lodash (#2829)
Diffstat (limited to 'config')
-rw-r--r--config/webpack/loaders/babel.js5
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'
+  }
 }