如何将使用汇总的节点部署到heroku [英] How to deploy node that uses Rollup to heroku
本文介绍了如何将使用汇总的节点部署到heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用汇总.
我也不提交所有生成的文件所在的npm_modules文件夹和公用文件夹.而且在部署和设置服务器(已经在寻找公用文件夹)之后,我不知道如何构建我的应用程序(我有webpack build命令).
Also I don't commit npm_modules folder and public folder, where all generated files are. And I can't figure out how to build my app (I have webpack build command) after deploy and setup my server (it's already looking for public folder).
在上传之前先提交似乎是个坏主意.也许有一些温柔的决定...有什么想法吗?
It seems me a bad idea to commit before upload. Maybe there are some gentle decisions... Any thoughts?
从以下节点派生:如何将使用Webpack的节点部署到heroku
推荐答案
我不使用Heroku,但是根据关于此问题的答案,它应该像这样简单:
I don't use Heroku, but according to the answers on the question this is forked from, it should be as simple as this:
"heroku-postbuild": "rollup -c"
这篇关于如何将使用汇总的节点部署到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文