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