Feat: Correctly extracting boboko/core's js

This commit is contained in:
2026-09-28 08:46:14 +03:00
parent cd45d8f578
commit 8b362c9436
6 changed files with 53 additions and 8 deletions
+7 -1
View File
@@ -1,6 +1,7 @@
import { defineConfig } from "vite";
import laravel from "laravel-vite-plugin";
import tailwindcss from "@tailwindcss/vite";
import { boboko } from "@boboko/core/vite-plugin";
export default defineConfig({
build: {
@@ -14,13 +15,18 @@ export default defineConfig({
// checkout.css first: it's the portable cart/checkout module's
// structural base (@layer bbk-checkout) and must load before
// app.css so the host's own .bbk-* theming always wins.
"resources/css/checkout.css",
// Sourced from the @boboko/core npm package (a local
// `file:../boboko-core` dependency — see package.json and
// boboko()'s own comments in @boboko/core/vite-plugin for why
// this needs no further config here).
"node_modules/@boboko/core/resources/css/checkout.css",
"resources/css/app.css",
"resources/js/app.js",
],
refresh: true,
}),
tailwindcss(),
boboko(),
],
server: {
host: "0.0.0.0",