From aa084987547e300620f5e7c35585c4633c17564f Mon Sep 17 00:00:00 2001 From: wrnrlr Date: Mon, 28 Oct 2024 21:00:40 +0100 Subject: [PATCH] Fix workflow 4 --- www/vite.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/vite.config.js b/www/vite.config.js index 05d9a92..c4262ff 100644 --- a/www/vite.config.js +++ b/www/vite.config.js @@ -39,7 +39,8 @@ export default defineConfig(({ command, mode }) => { 'index': path.join(root, 'index.html'), 'playground': path.join(root, 'playground.html'), } - if (command==='serve' && fs.existsSync('docs/index.html')) input[docs] = path.join(root, 'docs/index.html') + if (fs.existsSync('docs/index.html')) input[docs] = path.join(root, 'docs/index.html') + build = { // lib: { entry: 'src/mod.ts', formats: ['es'] }, rollupOptions: {