feat: 动态载入node-serialport和node-usb避免nwjs下server异常

This commit is contained in:
王立帮
2025-05-22 22:14:02 +08:00
parent 8de021439e
commit 958413b03a
15 changed files with 251 additions and 40 deletions

11
webpack.nw.cjs Normal file
View File

@@ -0,0 +1,11 @@
const common = require('./webpack.common.cjs');
const { merge } = require('webpack-merge');
module.exports = merge(common, {
output: {
path: __dirname,
filename: 'bundle.cjs'
},
mode: 'production'
});