如何使用Amazon S3服务Angle 2 [英] How to serve angular 2 using amazon s3

查看:92
本文介绍了如何使用Amazon S3服务Angle 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不使用专用服务器的情况下使用Amazon s3来提供angular 2应用.如果可以,该如何进行?

Is it possible to use amazon s3 to serve angular 2 app without using a dedicated server. If so how to proceed ?

推荐答案

有可能.但是随后您应该使用 webpack .

It is possible. But then you should use webpack.

将应用程序配置为可与Webpack一起使用后,您可以npm run build并将处理后的文件上传到

After you configure your app to work with webpack, you can npm run build and upload the processed files to S3 as a static website.

这篇关于如何使用Amazon S3服务Angle 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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