前言:我们的一个vue项目在给新同事后他说编译贼慢,一个小修改项5分钟才能自动编译成功,我把项目放到新电脑上也巨慢,升级了nodejs好使了一些,但还是慢,最后引入webpack后巨快,
在项目的package.json中引入 webpack 后两秒不到就好了,哈哈哈
"dependencies": {..."webpack": "^4.4.1","xe-utils": "2.4.8","xmldom": "^0.1.27"},"devDependencies": {..."vue-template-compiler": "^2.6.10","webpack-cli": "^5.1.4"}