Skip to content

Commit 04c8d8a

Browse files
Fix HTML synthetic chunk filenames
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
1 parent c7a310d commit 04c8d8a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Gruntfile.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ module.exports = function (grunt) {
150150
output: {
151151
path: __dirname + "/build/prod",
152152
filename: chunkData => {
153-
return chunkData.chunk.name === "main" ? "assets/[name].js" : "[name].js";
153+
const chunkName = chunkData.chunk.name;
154+
if (chunkName === "main") return "assets/[name].js";
155+
return chunkName.startsWith("__html_") ? "gchq.[name].chunk.js" : "[name].js";
154156
},
155157
globalObject: "this"
156158
},

0 commit comments

Comments
 (0)