const path = require('path') // 抛出 module.exports = { mode: "production", // entry: "./src/a.js", // entry:'./news.js', entry:['./src/a.js','./src/b.js'], // entry:{ // hi:'./src/a.js', // hello:'./src/b.js' // } output: { filename:'[name]-[id]-[hash].js', path:path.resolve(__dirname,'dist'), clean: true }, };