没有服务器的Angular 2应用程序? [英] Angular 2 application with no server?

查看:58
本文介绍了没有服务器的Angular 2应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不运行服务器的情况下运行Angular 2应用程序?我只需要取一个包含index.html的文件夹(另外还有一些CSS,JS)

How to run Angular 2 application without running a server? I need to take just one folder which contains index.html (some css, js additionally)

推荐答案

如果使用angular-cli,则可以执行 ng build --prod .index.html将位于dist文件夹中.

If you use angular-cli you can do ng build --prod. The index.html will be in the dist folder.

这篇关于没有服务器的Angular 2应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆