Add CSS via SCSS to the frontend build pipeline

This commit is contained in:
Eli Ribble 2026-03-21 19:14:51 +00:00
parent 1e67c0090d
commit f3c818a48f
No known key found for this signature in database
12 changed files with 924 additions and 94 deletions

View file

@ -1,5 +1,6 @@
import esbuild from "esbuild";
import vue from "esbuild-plugin-vue3";
import { sassPlugin } from "esbuild-sass-plugin";
const args = process.argv.slice(2);
const watch = args.includes("--watch");
@ -9,7 +10,14 @@ const config = {
entryPoints: ["ts/main.ts"],
bundle: true,
format: "esm",
plugins: [vue()],
plugins: [
sassPlugin({
quietDeps: true,
silenceDeprecations: ["import"], // silence known issue with Bootstrap #40962
type: "css",
}),
vue(),
],
define: {
__VUE_OPTIONS_API__: "true",
__VUE_PROD_DEVTOOLS__: "false",