This website works better with JavaScript.
Home
Help
Sign In
aris
/
static-site-tools
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Remove existing public/ directory before build
master
Aris
4 months ago
parent
c7707d0947
commit
e670070934
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
hugo_build.sh
+ 6
- 0
hugo_build.sh
View File
@ -1,3 +1,9 @@
#!/bin/bash
# hugo_build.sh [17.12.2020]
# Remove ./public directory if exist then buil site for production
# Copy at root of Hugo project
# Make executable: chmod u+x hugo_build.sh
# Enjoy
output_dir
=
./public
[
-d
"
$output_dir
"
]
&&
rm -fr
"
$output_dir
"
./bin/hugo --minify --gc
Write
Preview
Loading…
Cancel
Save