-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathwebpack.main.config.js
More file actions
29 lines (28 loc) 路 933 Bytes
/
Copy pathwebpack.main.config.js
File metadata and controls
29 lines (28 loc) 路 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const [ Dotenv ] = require('./webpack.plugins');
const path = require('path');
module.exports = {
/**
* This is the main entry point for your application, it's the first file
* that runs in the main process.
*/
entry: './src/main/index.ts',
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules'),
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
alias: {
app: path.resolve(__dirname, 'src', 'app'),
main: path.resolve(__dirname, 'src', 'main'),
// We override the call to the debug version of Nodegit, since we are
// not building it anyways, and webpack trips over the conditional
// require statement in Nodegit.
'../build/Debug/nodegit.node': false,
}
},
plugins: [
Dotenv,
],
// devtool: 'source-map',
};