Skip to content

Commit 5eb11a1

Browse files
committed
Update hugo:dev script to clean public directory before starting server for improved build consistency.
1 parent 98e8f23 commit 5eb11a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
88
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
99
"format": "prettier --write .",
10-
"hugo:dev": "cd hugo && hugo server --disableFastRender",
10+
"hugo:dev": "rm -rf hugo/public && cd hugo && hugo server --disableFastRender",
1111
"build:local": "rm -rf hugo/public && cd hugo && hugo && bun run index",
1212
"build": "cd hugo && hugo --minify && bun run index",
1313
"index": "bunx pagefind --site hugo/public",

0 commit comments

Comments
 (0)