aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package_abridge.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/package_abridge.js b/package_abridge.js
index 4f12bb5..52c704e 100644
--- a/package_abridge.js
+++ b/package_abridge.js
@@ -53,6 +53,14 @@ async function abridge() {
console.log('Zola Build to generate files for minification:');
await execWrapper('zola build');
+ //check that static/js exists, do this after zola build, it will handle creating static if missing.
+ var jsdir = 'static/js';
+ try {
+ fs.mkdirSync(jsdir);
+ } catch(e) {
+ if (e.code != 'EEXIST') throw e;
+ }
+
// check if abridge is used directly or as a theme.
bpath = '';
if (fs.existsSync('./themes')) {