webpackconfig.js配置文件
const path = require('path');
module.exports = {
entry: './main.js',
output: {
filename: 'main.bundle.js',
path: path.resolve(__dirname, 'dist')
},
target: 'node',
node:{
fs:'empty',
child_process:'empty',
}
};