mirror of
https://github.com/stake-house/wagyu-installer.git
synced 2026-01-09 21:28:03 -05:00
25 lines
601 B
JavaScript
25 lines
601 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
entry: './src/electron/index.ts',
|
|
output: {
|
|
filename: 'index.js',
|
|
path: path.resolve(__dirname, 'dist/electron')
|
|
},
|
|
module: {
|
|
rules: [{ test: /\.tsx?$/, loader: 'ts-loader' }]
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.tsx', '.js']
|
|
},
|
|
// tell webpack that we're building for electron
|
|
target: 'electron-main',
|
|
node: {
|
|
// tell webpack that we actually want a working __dirname value
|
|
// (ref: https://webpack.js.org/configuration/node/#node-__dirname)
|
|
__dirname: false
|
|
}
|
|
}; |