[英]Can an application built with node and @angular/cli run offline?
I am new to angular/cli
and node
. 我是
angular/cli
和node
新手。 I want to build an application using angular and deploy it to an environment that has all outside communication blocked via. 我想使用angular构建一个应用程序,并将其部署到一个阻止所有外部通信通过的环境中。 firewall.
防火墙。 You cannot even access any search engine.
您甚至无法访问任何搜索引擎。 The db and everything required available in the intranet.
数据库和Intranet中所需的所有内容。
So my question is if I build the application using ng new
and install dependencies using npm install xxxxx
, build the dist
in my development pc, can I run it offline? 所以我的问题是,如果我使用
ng new
来构建应用程序并使用npm install xxxxx
来安装依赖项,并在我的开发PC中构建dist
,我可以脱机运行吗?
I plan to use mdbootstrap
, chartjs
and I have all my fonts for offline usage. 我计划使用
mdbootstrap
, chartjs
并且所有字体都可以脱机使用。
Anybody faced anything similar? 有人面对过类似的事情吗?
Sorry for asking, but why don't you just try if it works? 抱歉问,但为什么不尝试一下呢? And to answer your question, yes you can.
回答您的问题,是的,您可以。 It only depends on your application if it needs to go outside your intranet.
如果它需要移出Intranet,则仅取决于您的应用程序。 If it doesn't request any API, resource etc... not reachable from inside your intranet, then you are good to go.
如果它不请求从您的Intranet内部无法访问的任何API,资源等...,那么您就很好了。
Just updating dependencies need an internet connection 只是更新依赖项需要互联网连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.