Skip to content

Commit

Permalink
Fix the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaster1 committed Mar 7, 2025
1 parent 8d1ca9c commit 34b9ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gh-pages-before-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { copyFile, writeFile } from 'node:fs/promises';
await copyFile('dist/timer-5/index.html', 'dist/timer-5/404.html');
console.log('404 created');

const ngswConfig = (await import('../dist/timer-5/ngsw.json', { assert: { type: 'json' } })).default;
const ngswConfig = (await import('../dist/timer-5/ngsw.json', { with: { type: 'json' } })).default;
const indexHtmlAt = ngswConfig.assetGroups.at(0).urls.indexOf(`/timer-5/index.html`);
ngswConfig.assetGroups.at(0).urls.splice(indexHtmlAt, 0, '/timer-5/404.html');
const indexHtmlHash = ngswConfig.hashTable['/timer-5/index.html'];
Expand Down

0 comments on commit 34b9ebf

Please sign in to comment.