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