generated from boboko/starter
Feat: Correctly extracting boboko/core's js
This commit is contained in:
+7
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user