From c173d0d76eca74bab8e0a21ca4991614c8fd3cd6 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 24 Aug 2021 08:49:27 -0400 Subject: [PATCH] don't use hash routing in dev --- docs/index.html | 2 +- scripts/build.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index e3660285..4c937d72 100644 --- a/docs/index.html +++ b/docs/index.html @@ -78,7 +78,7 @@ crossChapter: true, crossChapterText: false }, - routerMode: location.port ? 'hash' : 'history', + routerMode: 'history', search: { maxAge: 86400000, // Expiration time, the default one day paths: 'auto', diff --git a/scripts/build.js b/scripts/build.js index 3f2b525c..517ea1f4 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -87,6 +87,7 @@ try { logPrefix: '[shoelace]', logFileChanges: true, notify: false, + single: true, server: { baseDir: 'docs', routes: {