mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
perf: webpack config
This commit is contained in:
9
webpack.preload.config.js
Normal file
9
webpack.preload.config.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
Reference in New Issue
Block a user