简体   繁体   English

将node.js应用程序部署到Heroku时如何执行自定义构建脚本

[英]How do I execute custom build script when deploying node.js application to Heroku

How do I execute custom build script when deploying node.js application to Heroku? 将node.js应用程序部署到Heroku时如何执行自定义构建脚本?

For example, I want to minify JavaScript files. 例如,我要缩小JavaScript文件。

I highly recommend the use of asset-rack, which will minify files when your server first starts up, as well as providing fingerprinted versions of the files that can be cached forever. 我强烈建议您使用资产机架,这将在服务器首次启动时最小化文件,并提供可以永久缓存的指纹版本。

https://github.com/techpines/asset-rack https://github.com/techpines/asset-rack

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM