Permalink
Browse files

fix(browser): fix error when using the dev .js file in a browser

XHRs would fail with 'process is not defined'
  • Loading branch information...
j-white committed Jun 22, 2017
1 parent 09cd705 commit ee7d22a578f69adf820b26b654819cdad1e26e66
Showing with 5 additions and 0 deletions.
  1. +5 −0 webpack.config.js
View
@@ -90,6 +90,11 @@ if (isProduction) {
minimize: false,
debug: true
}));
config.plugins.push(new webpack.DefinePlugin({
"process.env": {
NODE_ENV: JSON.stringify("test")
}
}));
config.output.filename = '[name].js';
}

0 comments on commit ee7d22a

Please sign in to comment.