Fix windows build #830

Merged
IGassmann merged 2 commits from fix-windows-build into master 2017-12-09 16:09:47 +01:00
Showing only changes of commit 8f37e12819 - Show all commits

View file

@ -1,5 +1,4 @@
const path = require('path');
const FlowBabelWebpackPlugin = require('./src/renderer/flowtype-plugin');
const ELECTRON_RENDERER_PROCESS_ROOT = path.resolve(__dirname, 'src/renderer/');
@ -20,10 +19,15 @@ module.exports = {
resolve: {
modules: [ELECTRON_RENDERER_PROCESS_ROOT, 'node_modules', __dirname],
extensions: ['.js', '.jsx', '.scss']
},
plugins: [
new FlowBabelWebpackPlugin({
}
};
if (process.env.NODE_ENV === 'development') {
const FLOW_BABEL_WEBPACK_PLUGIN = require('./src/renderer/flowtype-plugin');
module.exports.plugins = [
new FLOW_BABEL_WEBPACK_PLUGIN({
warn: true
})
]
};
}