diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-14 16:39:17 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-14 16:39:17 -0800 |
| commit | 613632f3a8fccb998147e46d0e751ca4afc66544 (patch) | |
| tree | 609c21fb12b95d54c3cdce4c20d02c152dbd81e2 /rolldown.config.js | |
| parent | e033a8fd8ce3fbe92ef87ca662ac6785d4ec9b7b (diff) | |
| download | adelie-613632f3a8fccb998147e46d0e751ca4afc66544.tar.gz adelie-613632f3a8fccb998147e46d0e751ca4afc66544.zip | |
Fixes
Diffstat (limited to 'rolldown.config.js')
| -rw-r--r-- | rolldown.config.js | 36 |
1 files changed, 0 insertions, 36 deletions
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(); |
