Skip to content

Commit 14a27c3

Browse files
cache bust the chunks
1 parent 66ed7b3 commit 14a27c3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ const main = async () => {
103103
console.log("Downloading OS...");
104104

105105
// lazy load bootloader to create a smaller initial bundle (with the boot screen working right away while the code is downloaded)
106-
const { boot_os } = await import("./bootloader");
106+
const { boot_os } = await import(
107+
/* webpackChunkName: "os" */
108+
"./bootloader"
109+
);
107110

108111
console.log("Booting OS...");
109112

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ module.exports = (env, argv) => {
9393
},
9494
output: {
9595
filename: "[name].bundle.js",
96+
chunkFilename: "[name].[contenthash].chunk.js",
9697
path: path.resolve(__dirname, "public/script"),
9798
},
9899
}

0 commit comments

Comments
 (0)