Webpack打包用webpack-dev-server配置DevServer
后打包报错:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
将的package.json
中的"dev": "webpack-dev-server --open"
改为"dev": "webpack serve --open"
即可,修改后的如下图:
Webpack打包用webpack-dev-server配置DevServer
后打包报错:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
将的package.json
中的"dev": "webpack-dev-server --open"
改为"dev": "webpack serve --open"
即可,修改后的如下图:
要发表评论,您必须先登录。