11 lines
216 B
JavaScript
11 lines
216 B
JavaScript
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './main.js',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: path.resolve(__dirname, 'dist')
|
|
},
|
|
target: 'node' // 这是最关键的
|
|
}; |