
I'm building a Vue application hosted in Power Pages. My index.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My SPA</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
I need to lazy load certain parts of this application so I'm using runtime dynamic imports. Part of my router:
{
path: '',
name: 'home',
component: () => import('@components/Home.vue'),
meta: { title: 'Accueil' },
},
My build consists of dozens of chunked assets with generated hashs to force the cache when changed like the following:
dist/
dist/index.html
dist/assets
dist/assets/Home-64094b4e.js
dist/assets/Place-cdd3b093.js.map
dist/assets/index-c6d360a8.js.map
dist/assets/Orders-5e0de46a.js.map
dist/assets/Catalog-137c82b8.js
dist/assets/Home-64094b4e.js.map
dist/assets/index-c6d360a8.js
dist/assets/Dashboard-027f84b0.js.map
dist/assets/Documents-1cd1bf7f.js.map
dist/assets/Place-cdd3b093.js
dist/assets/Documents-1cd1bf7f.js
dist/assets/Catalog-137c82b8.js.map
dist/assets/Profile-494513ba.js
dist/assets/order-f44d6cb4.js.map
dist/assets/index-6eacddaf.css
dist/assets/Public-2cb7aaeb.js
dist/assets/order-f44d6cb4.js
dist/assets/Profile-494513ba.js.map
dist/assets/Orders-5e0de46a.js
dist/assets/List-a0690d89.js.map
dist/assets/Public-2cb7aaeb.js.map
dist/assets/Dashboard-027f84b0.js
dist/assets/List-a0690d89.js
How can I deploy these always changing files with pac paportal cli ?
Should I do a script to update the manifest each time ?
Is there any good practice described somewhere about that ?