Skip to content

Commit 3039934

Browse files
committed
Fixed issue with electron main pipeline
1 parent 8e42ad3 commit 3039934

File tree

12 files changed

+2019
-262
lines changed

12 files changed

+2019
-262
lines changed

Procfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
react: npm run react-start
2+
electron: npm run electron-start

config/webpack.dev.config.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
mode: 'development',
5+
target: 'electron-main',
6+
entry: './src/electron/main.ts',
7+
devtool: 'cheap-module-source-map',
8+
module: {
9+
rules: [
10+
{
11+
test: /\.tsx?$/,
12+
use: [{
13+
loader: 'ts-loader',
14+
options: {
15+
compilerOptions: {
16+
noEmit: false
17+
}
18+
}
19+
}],
20+
exclude: /node_modules/
21+
}
22+
]
23+
},
24+
resolve: {
25+
extensions: ['.tsx', '.ts', '.js']
26+
},
27+
output: {
28+
filename: 'bundle.js',
29+
path: path.resolve(__dirname, '../build/electron')
30+
}
31+
};

0 commit comments

Comments
 (0)