forked from leinelissen/aeon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.main.config.js
More file actions
35 lines (34 loc) · 911 Bytes
/
webpack.main.config.js
File metadata and controls
35 lines (34 loc) · 911 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
30
31
32
33
34
35
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: {
index: './src/main/index.ts',
preload: './src/app/preload.ts',
},
output: {
filename: '[name].js',
devtoolModuleFilenameTemplate: '[absolute-resource-path]'
},
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules'),
},
optimization: {
usedExports: true,
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
alias: {
app: path.resolve(__dirname, 'src', 'app'),
main: path.resolve(__dirname, 'src', 'main'),
}
},
plugins: [
Dotenv,
],
devtool: 'source-map'
};