1 2 3 4 5 6 7 8
module.exports = { test: /\.js(\.erb)?$/, exclude: /node_modules/, loader: 'babel-loader', options: { forceEnv: process.env.NODE_ENV || 'development' } }