Clean and copy assets
This commit is contained in:
parent
47680670c7
commit
d70ad35e3b
@ -6,6 +6,7 @@ outdir="./output/"
|
|||||||
scriptdir="${outdir}scripts/"
|
scriptdir="${outdir}scripts/"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
rm -rf "${outdir}"
|
||||||
mkdir -p "${outdir}/scripts"
|
mkdir -p "${outdir}/scripts"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,9 +32,14 @@ create_index() {
|
|||||||
SHA1="${sha1}" envsubst < template.html > "${outdir}/index.html"
|
SHA1="${sha1}" envsubst < template.html > "${outdir}/index.html"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
copy_assets() {
|
||||||
|
cp -r assets ${outdir}
|
||||||
|
}
|
||||||
|
|
||||||
prepare
|
prepare
|
||||||
build
|
build
|
||||||
minify
|
minify
|
||||||
sha1=$(sha1)
|
sha1=$(sha1)
|
||||||
rename_with_hash "${sha1}"
|
rename_with_hash "${sha1}"
|
||||||
create_index "${sha1}"
|
create_index "${sha1}"
|
||||||
|
copy_assets
|
||||||
|
Loading…
Reference in New Issue
Block a user