mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
11 lines
300 B
JavaScript
11 lines
300 B
JavaScript
const baseConfig = require('./webpack.base.config.js')
|
|
|
|
baseConfig.target = 'electron-main'
|
|
baseConfig.entry = {
|
|
main: './src/main/main.ts',
|
|
// preload: './src/preload.ts',
|
|
}
|
|
baseConfig.output.libraryTarget = 'commonjs2'
|
|
baseConfig.output.chunkFormat = 'commonjs'
|
|
|
|
module.exports = baseConfig |