generated from alecodes/base-template
20 lines
426 B
TypeScript
20 lines
426 B
TypeScript
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!");
|