gpt4 book ai didi

angular - 使用 Angular Cli 自定义生成的文件名

转载 作者:太空狗 更新时间:2023-10-29 16:54:46 26 4
gpt4 key购买 nike

使用 Angular-cli 构建的文件名是 main.[hash].bundle.js 当使用 ng build -prod是否可以从该文件名中删除散列。那么只有 main.bundle.js 吗?

最佳答案

从 beta.25 开始,它现在通过命令选项得到支持。

This allows the output filename hashes to be configured during a build via a new build command option --output-hashing. There are four possible values:

none: no hashing performed

media: only add hashes to files processed via [url|file]-loaders

bundles: only add hashes to the output bundles

all: add hashes to both media and bundles

none is the default for the development target.all is the default for the production target.

更多详情 here .

关于angular - 使用 Angular Cli 自定义生成的文件名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39718803/

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