diff --git a/.devtools/updatehashes.ps1 b/.devtools/updatehashes.ps1 index afd8f26..993cab6 100644 --- a/.devtools/updatehashes.ps1 +++ b/.devtools/updatehashes.ps1 @@ -1,7 +1,7 @@ # Updates html files with cache busting urls including file hashes. # Actual file processing -$htmlfiles = Get-ChildItem -Path . -Recurse -Filter "*.html" | Resolve-path -relative +$htmlfiles = Get-ChildItem -Path . -Recurse -Filter "*.html" | Where {$_.FullName -notlike "*\node_modules\*"} | Resolve-path -relative foreach ($htmlfile in $htmlfiles) { Write-Host "[info] Processing '${htmlfile}' for cache busting..." -ForegroundColor Blue diff --git a/.githooks/windows/pre-commit b/.githooks/windows/pre-commit index b78afe4..6b35b79 100755 --- a/.githooks/windows/pre-commit +++ b/.githooks/windows/pre-commit @@ -3,7 +3,7 @@ # Script to perform some basic operations to the code before committing. # Adds file hashes to html script imports for cache busting purposes -powershell .devtools/updatehashes.bat gitadd +powershell .devtools/updatehashes.ps1 gitadd # Adds file to current commit git add "**.html" \ No newline at end of file diff --git a/index.html b/index.html index 9491f31..0e26542 100644 --- a/index.html +++ b/index.html @@ -4,22 +4,22 @@