gpt4 book ai didi

angularjs - Azure 上的 Angular js 脚本在哪里?

转载 作者:行者123 更新时间:2023-12-03 03:12:06 25 4
gpt4 key购买 nike

客户要求我们查看由 Azure 托管的 Web 应用程序。我有一些源代码并可以访问 Azure 站点。我拥有的部分源代码(在本地,不在 Azure 上)是几个 Controller (我认为它们是用 Angular js 编写的)。这些是 browserController.js、index.js 等文件。这些 js 文件位于我的本地计算机上。在 Visual Studio 中对它们进行更改后,我试图找出将它们放在 Azure 上的位置,但我在 Azure 中的任何位置都找不到 js 文件。我确实在 Azure 中找到了一些名称为 bundle-app.js 和 bundle-external.js 的 js 文件,但是当我打开这些文件时,它们看起来不像我拥有的​​任何 Controller js 文件。

那么,这些 js 文件会在 Azure 中的什么位置?

这是 Azure 中的完整树:

enter image description here

最佳答案

如果您使用 .NET MVC,您将在 Web 项目的 AppStart 下有一个名为 BundleConfig 的类。您可以在那里配置如何捆绑 javascript 文件。通常,在将应用程序部署到 Azure 之前, bundle 会被缩小以减少加载时间,这就是为什么您无法识别其中的任何 Controller 的原因。

在此处了解更多信息:http://www.asp.net/mvc/overview/performance/bundling-and-minification

关于angularjs - Azure 上的 Angular js 脚本在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35901720/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com