05b0b5d8
Yarik
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.electron.common.js');
const WebpackShellPlugin = require('./webpack-shell-plugin');
const ENV = process.env.NODE_ENV = process.env.ENV = 'development';
module.exports = webpackMerge(commonConfig, {
plugins: [
new WebpackShellPlugin({
//TODO: Kill electron process before build, to start the new one fresh.
onBuildStart: [''],
onBuildEnd: ['electron dist']
}),
new webpack.DefinePlugin({
'process.env': {
'ENV': JSON.stringify(ENV)
}
})
]
});
|