Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Better
Site
Commits
52e1a9d7
Commit
52e1a9d7
authored
Apr 29, 2021
by
Laura Kalbag
⚡
Browse files
Develop script does full build now if dist folder does not exist
parent
230eca68
Changes
1
Hide whitespace changes
Inline
Side-by-side
develop
View file @
52e1a9d7
#!/bin/bash
# If dist directory doesn’t exist, clean the cache and
# recreate it so we ensure a full build.
if
[
!
-d
"dist"
]
;
then
echo
"(!) dist/ directory does not exist; doing a full build"
mkdir
dist
./clean-cache
fi
# Start serving the dist directory at https://localhost as a background process.
site dist &
SITE_JS_PID
=
$!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment