Modify angular cli build to run custom script

房东的猫 提交于 2019-12-08 03:06:32

问题


I have a custom node script that generates a pseudo language file, in older angular.js projects I used a gulp task to run the script as part of the build process. Is there a way to modify angular-cli to run the script on ng build/ng serve? I know I can use npm run-scripts to run it and then run the ng command but just wondering if there is a way to do with angular-cli directly?

来源:https://stackoverflow.com/questions/50908092/modify-angular-cli-build-to-run-custom-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!