Files
wagyu-installer/webpack.electron.config.js
Colfax Selby 2e9220d337 Stakehouse v0
2021-03-09 15:55:18 -05:00

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
}
};