const webpack = require('path') module.exports = { mode: "development", entry: './src/index.js', output: { filename: "bundle-main.js", // 默认值 clean: true, path: `${__dirname}/dist/dist` // 指定打包后的文件路径 } }