From c28f682177bc2d5beef0a108acd688b28992891e Mon Sep 17 00:00:00 2001 From: Freddy Robinson Date: Fri, 17 Feb 2023 21:38:48 +0000 Subject: [PATCH] Add base URL to preview --- index.mjs | 2 +- previewindex.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.mjs b/index.mjs index 93713f0..f1c7eae 100644 --- a/index.mjs +++ b/index.mjs @@ -335,7 +335,7 @@ async function savePageAndResources(url, html, $) { // write preview index page const dir = `${output}/preview${url}` ensureDirExists(dir) - html = html.replace(regexEmail, 'Licensed User') + html = html.replace(regexEmail, 'Licensed User').replace('', '\n') fs.writeFileSync(`${dir}/index.html`, html) console.log(`📝 Writing ${url}/index.html`) } diff --git a/previewindex.html b/previewindex.html index 0608add..09c1d87 100644 --- a/previewindex.html +++ b/previewindex.html @@ -2,10 +2,10 @@ - + Tailwind UI Preview - View Components + View Components \ No newline at end of file