师,这段报错的意思我理解为需要把mode配置为开发或者生产,但是不清楚应该在哪里配,求指导
const path = require('path') module.exports = { mode: 'development', entry: path.resolve(__dirname, './src/index.js'), output: { path: path.resolve(__dirname, './dist'), filename: 'index-bundle.js', }, }