web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Lazy loading chunked &...
Power Pages
Unanswered

Lazy loading chunked & hashed JS files

(0) ShareShare
ReportReport
Posted on by 17

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 ?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 59

#2
11manish Profile Picture

11manish 53

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard