"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --content-base dist --inline"
},
npm run build; 会生成打包文件
npm run dev;不会生成打包文件,但也会执行成功,文件会被放到缓存里
webpack 打包和运行服务器的区别
最新推荐文章于 2024-06-05 09:12:46 发布
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --content-base dist --inline"
},
npm run build; 会生成打包文件
npm run dev;不会生成打包文件,但也会执行成功,文件会被放到缓存里