This commit is contained in:
2026-04-24 14:03:17 +02:00
commit 0191347312
31 changed files with 16354 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
// import { hmrPlugin, presets } from "@open-wc/dev-server-hmr";
/** Use Hot Module replacement by adding --hmr to the start command */
const hmr = process.argv.includes("--hmr");
export default /** @type {import("@web/dev-server").DevServerConfig} */ ({
open: "/",
watch: !hmr,
/** Resolve bare module imports */
nodeResolve: {
exportConditions: ["browser", "development"],
},
/** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
// esbuildTarget: "auto"
/** Set appIndex to enable SPA routing */
appIndex: "./index.html",
plugins: [
/** Use Hot Module Replacement by uncommenting. Requires @open-wc/dev-server-hmr plugin */
// hmr && hmrPlugin({ exclude: ["**/*/node_modules/**/*"], presets: [presets.litElement] }),
],
// See documentation for all available options
});