Skip to content

Commit

Permalink
feat: auto-open browser via make dev-env
Browse files Browse the repository at this point in the history
  • Loading branch information
SKalt committed Mar 11, 2024
1 parent 862dc56 commit 6f69f32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/serve.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ hugo --gc --buildDrafts
mkdir -p ./static/
rm -rf ./static/pagefind
pagefind --site ./public --output-path ./static/pagefind --root-selector main
hugo serve --buildDrafts --navigateToChanged
python3 -c 'import time, webbrowser; time.sleep(2); webbrowser.open("http://localhost:1313/")' &
hugo serve --buildDrafts "$@"

0 comments on commit 6f69f32

Please sign in to comment.