feat: 动态载入node-serialport和node-usb避免nwjs下server异常
This commit is contained in:
11
webpack.nw.cjs
Normal file
11
webpack.nw.cjs
Normal 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'
|
||||
});
|
||||
Reference in New Issue
Block a user