Skip to content

Commit

Permalink
account for missing cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
jjspace committed Aug 28, 2024
1 parent def0f0c commit dd3f943
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,10 @@ export async function glslToJavaScript(
workspace,
specificFiles
) {
const minifyFile = readFileSync(minifyStateFilePath, "utf-8");
if (minifyFile !== minify.toString()) {
if (
!existsSync(minifyStateFilePath) ||
readFileSync(minifyStateFilePath, "utf-8") !== minify.toString()
) {
await writeFile(minifyStateFilePath, minify.toString());
}
const minifyStateFileLastModified = existsSync(minifyStateFilePath)
Expand Down

0 comments on commit dd3f943

Please sign in to comment.