编程语言
首页 > 编程语言> > 如何让SAP Spartacus ng build生成的JavaScript资源附带上store ID

如何让SAP Spartacus ng build生成的JavaScript资源附带上store ID

作者:互联网

问题

As we are migrating our storefront to Spartacus, we can see the following JS resources generated do not contain the store id and this is causing issues with out cdn as we have multiple origin servers where to route the requests for this JS files.

期望的行为

解决方案

参考这个StackOverflow帖子:What’s the difference between --base-href and --deploy-url parameters of angular-cli tool

使用如下命令行:

ng build --deploy-url /uk/

标签:styles,uk,--,JavaScript,js,es2015,store,Spartacus
来源: https://blog.csdn.net/i042416/article/details/113860007