Skip to content

Commit 5dc8293

Browse files
committed
fix: update file exclusion logic and improve build cache miss message
1 parent 9625903 commit 5dc8293

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adminforth/modules/codeInjector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ class CodeInjector implements ICodeInjector {
946946

947947
// 🚫 Skip big files or files which might be dynamic
948948
if (file.name === 'node_modules' || file.name === 'dist' ||
949-
file.name === 'i18n-messages.json' || file.name === 'i18n-empty.json') {
949+
file.name === 'i18n-messages.json' || file.name === 'i18n-empty.json' || file.name === 'hashes.json') {
950950
return '';
951951
}
952952

@@ -1072,7 +1072,7 @@ class CodeInjector implements ICodeInjector {
10721072

10731073
if (!hotReload) {
10741074
if (!skipBuild) {
1075-
console.log(`🪲 Build cache miss, building SPA...`);
1075+
console.log(`🪲 Build cache miss or outdated, building SPA...`);
10761076
let oldHashForFiles = null;
10771077
try {
10781078
oldHashForFiles = await fs.promises.readFile(path.join(this.spaTmpPath(), 'hashes.json'), 'utf-8');

0 commit comments

Comments
 (0)