webpack初始化index.js报错:
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any def
查看package.json配置文件并修改
然后执行命令(在这里路径注意,如果不一致需替换)
npx webpack ./src/page/index/index.js ./dist/app.js --modedevelopment