将 Angular 构建上的 main.js 重命名为其他名称,然后命名为 main.js

发布于 2025-01-16 13:32:30 字数 187 浏览 3 评论 0原文

有没有办法配置 Angular 构建来为它正在创建的文件指定另一个名称?不是 main.js 而是 foo.js。我试图找到一些期望我可以在 angular.json 或 wirh webpack 配置中配置它的东西,但找不到任何东西。这是我第一次必须改变一些事情。过去,我只是使用创建项目时创建的默认配置。

Is there a way to configure the Angular build to give the file it is creating another name? Not main.js but foo.js. I tried to find something expecting that i can configure it in the angular.json or wirh a webpack config, but could not find anything on it. This is the first time i have to change something. In the past i just worked with the default config that gets created when create a Project.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文