From 613632f3a8fccb998147e46d0e751ca4afc66544 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 14 Dec 2025 16:39:17 -0800 Subject: Fixes --- rolldown.config.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 rolldown.config.js (limited to 'rolldown.config.js') diff --git a/rolldown.config.js b/rolldown.config.js deleted file mode 100644 index 6cc7765..0000000 --- a/rolldown.config.js +++ /dev/null @@ -1,36 +0,0 @@ -import { rolldown } from 'rolldown'; -import fs from 'fs-extra'; -import path from 'path'; - -const production = process.env.NODE_ENV === 'production'; - -async function build() { - try { - await fs.remove('dist'); - await fs.ensureDir('dist'); - - const jsBundle = await rolldown({ - input: 'src/js/script.ts', - output: { - file: 'dist/bundle.js', - format: 'es', - sourcemap: !production, - }, - }); - - await jsBundle.write(); - - await fs.copy('src/css/style.css', 'dist/bundle.css'); - await fs.copy('src/assets', 'dist', { - overwrite: true, - }); - - let html = await fs.readFile('src/index.html', 'utf8'); - await fs.writeFile('dist/index.html', html); - } catch (err) { - console.error('Build failed:', err); - process.exit(1); - } -} - -build(); -- cgit v1.2.3-70-g09d2