Skip to content

v2.1.0

Choose a tag to compare

@BjornTheProgrammer BjornTheProgrammer released this 05 Nov 12:20
· 44 commits to main since this release

What's Changed

  • Removing of the plugins option, this just now works by just adding an additional plugin before html().
  • Implemented naming of files with Bun.build for #11
  • Exposed an option for naming just css files as part of #11

Upgrade to at least Bun v1.1.34 before using.

await Bun.build({
    entrypoints: ['index.html'],
    outdir: 'dist',
    naming: {
        chunk: 'js/[dir]/[name]-[hash].[ext]',
        asset: 'assets/[name].[ext]',
        entry: 'main.html'
    },
    plugins: [html({
        naming: {
            css: 'css/[name].[ext]'
        }
    })],
})

Full Changelog: v2.0.0...v2.1.0