配置webpack.config.js,然后打包后filename自动给生成了main.js, mode也没起作用
let path = require('path')
module.export = {
entry: "./src/index.js",
output:{
filename: 'bundle.js',
path:path.resolve(__dirname, 'dist')
},
mode: 'development'
}
执行打包后filename自动变成main,mode也没作用
最后发现问题出在了module.exports 少打了个s,module.export为什么也能跑起来呢?