build: add docker build files

This commit is contained in:
Alexander Navarro 2025-03-12 15:11:48 -03:00
parent 1871610770
commit 3c2d3cf720
6 changed files with 262 additions and 23 deletions

View file

@ -0,0 +1,20 @@
import sassPlugin from "@alecodes/bun-plugin-sass";
const entrypoints = Array.from(
new Bun.Glob("frontend/**/*.html").scanSync("."),
);
const result = await Bun.build({
entrypoints,
outdir: "dist",
publicPath: "/",
splitting: true,
plugins: [sassPlugin],
naming: {
entry: "[dir]/[name].[ext]",
chunk: "assets/[name]-[hash].[ext]",
asset: "assets/[name]-[hash].[ext]",
},
});
console.log("Assets compiled!");