📦 improve(patch): bud@6.2.0 (#3074)

This commit is contained in:
Kelly Mears
2022-07-12 09:27:24 -07:00
committed by GitHub
parent 16d99623a9
commit 8192a15e50
6 changed files with 2033 additions and 1134 deletions

43
bud.config.mjs Normal file
View File

@@ -0,0 +1,43 @@
// @ts-check
/**
* Build configuration
*
* @see {@link https://bud.js.org/guides/getting-started/configure}
* @param {import('@roots/bud').Bud} app
*/
export default async (app) => {
app
/**
* Application entrypoints
*/
.entry({
app: ["@scripts/app", "@styles/app"],
editor: ["@scripts/editor", "@styles/editor"],
})
/**
* Directory contents to be included in the compilation
*/
.assets(["images"])
/**
* Matched files trigger a page reload when modified
*/
.watch(["resources/views/**/*", "app/**/*"])
/**
* Proxy origin (`WP_HOME`)
*/
.proxy("http://example.test")
/**
* Development origin
*/
.serve("http://0.0.0.0:3000")
/**
* URI of the `public` directory
*/
.setPublicPath("/app/themes/sage/public/");
};