feat: add plugin configResolved (#2055)
This commit is contained in:
@@ -17,6 +17,9 @@ export async function build(
|
||||
// Create a directory for static assets produced during the build
|
||||
await Deno.mkdir(join(outDir, "static"));
|
||||
|
||||
await Promise.all(
|
||||
plugins.map((plugin) => plugin.configResolved?.(state.config)),
|
||||
);
|
||||
await Promise.all(plugins.map((plugin) => plugin.buildStart?.(state.config)));
|
||||
|
||||
// Bundle assets
|
||||
|
||||
@@ -45,6 +45,7 @@ export async function dev(
|
||||
);
|
||||
state.config.dev = false;
|
||||
state.loadSnapshot = false;
|
||||
state.build = true;
|
||||
await build(state);
|
||||
} else if (config) {
|
||||
const state = await getInternalFreshState(
|
||||
|
||||
Reference in New Issue
Block a user