首次提交
This commit is contained in:
11
webpack.config.js
Normal file
11
webpack.config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './main.js',
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist')
|
||||
},
|
||||
target: 'node' // 这是最关键的
|
||||
};
|
||||
Reference in New Issue
Block a user