* feat: adds autobuild of umbraco extensions created by the dotnet template * adds file extensions to imports to follow the esmodule convention + apply formatting * build(deps): upgrade hey-api, vite, typescript and generate new api * chore: formatting * clean up actions as client is now automatically being built when starting the site * revert change with UMBRACO_VERSION_FROM_TEMPLATE * revert if(includeExample) * use template name * use template name * feat: update the way it sets the auth token * add back in IncludeExample if * fix: rename allowPackageTelemetry to allowTelemetry because that is what it is actually called * `.csproj` amends - Adds `BeforeTargets` to "BuildClient" target - Adds "package.json" to "RestoreClient" target input - Removes extra parameters from `npm i` command --------- Co-authored-by: leekelleher <leekelleher@gmail.com>
18 lines
459 B
TypeScript
18 lines
459 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: "src/bundle.manifests.ts", // Bundle registers one or more manifests
|
|
formats: ["es"],
|
|
fileName: "umbraco-extension",
|
|
},
|
|
outDir: "../wwwroot/App_Plugins/UmbracoExtension", // your web component will be saved in this location
|
|
emptyOutDir: true,
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
external: [/^@umbraco/],
|
|
},
|
|
},
|
|
});
|