Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular Wix安装程序是否复制动态命名的角度文件?_Angular_Wix_Windows Installer - Fatal编程技术网

Angular Wix安装程序是否复制动态命名的角度文件?

Angular Wix安装程序是否复制动态命名的角度文件?,angular,wix,windows-installer,Angular,Wix,Windows Installer,使用wix安装程序,我们的文件名被显式命名。有没有办法抓取具有动态名称的文件?例如,在使用散列的情况下,它们始终是动态的,因此这会阻止服务器上的缓存。我将它们命名为static,但这在我们的生产环境中引入了许多缓存问题,包括新的构建 app.bundle.js应为app.bundle.343423432423323123945238.js <Component Id="app.bundle.js" Guid="{88FF7F86-D8E1-42F0-9EEC-365342AE57DB}"&

使用wix安装程序,我们的文件名被显式命名。有没有办法抓取具有动态名称的文件?例如,在使用散列的情况下,它们始终是动态的,因此这会阻止服务器上的缓存。我将它们命名为static,但这在我们的生产环境中引入了许多缓存问题,包括新的构建

app.bundle.js应为app.bundle.343423432423323123945238.js

<Component Id="app.bundle.js" Guid="{88FF7F86-D8E1-42F0-9EEC-365342AE57DB}">
  <File Id="app.bundle.js" KeyPath="yes" Source="$(var.TargetDir)..\dist\app.bundle.js" />
</Component>
<Component Id="polyfills.bundle.js" Guid="{CB3898F1-E382-4CDD-91ED-D4E0D52332D2}">
  <File Id="polyfills.bundle.js" KeyPath="yes" Source="$(var.TargetDir)..\dist\polyfills.bundle.js" />
</Component>
<Component Id="styles.bundle.js" Guid="{B4E38316-CADA-4CE9-99EF-C019F6B2C3A7}">
  <File Id="styles.bundle.js" KeyPath="yes" Source="$(var.TargetDir)..\dist\styles.bundle.js" />
</Component>
<Component Id="vendor.bundle.js" Guid="{5A2393C4-FB11-43F6-A832-E047525C4824}">
  <File Id="vendor.bundle.js" KeyPath="yes" Source="$(var.TargetDir)..\dist\vendor.bundle.js" />
</Component>

虽然我通常对99%的应用程序反对这种类型的东西,但基于NodeJS的应用程序通常受益于使用诸如Heat这样的程序来作为预构建步骤的一部分动态地获取文件

您将在早期使用主要升级和计划RemoveExistingProducts,以获得良好的体验,因为您的组件将改变每个构建