使用webpack-dev-server这个工具,来实现自动打包编译的功能
npm i webpack-dev-server -D
webpack-dev-server常用命令
自动打开浏览器:”dev”: “webpack-dev-server –open”
自动端口:”dev”: “webpack-dev-server –open –port 3000”
无刷新:”dev”: “webpack-dev-server –open –port 3000 –hot”
使用webpack-dev-server这个工具,来实现自动打包编译的功能
npm i webpack-dev-server -D
webpack-dev-server常用命令
自动打开浏览器:”dev”: “webpack-dev-server –open”
自动端口:”dev”: “webpack-dev-server –open –port 3000”
无刷新:”dev”: “webpack-dev-server –open –port 3000 –hot”
Reprint please specify: 云深不知处 webpack-dev-server