This commit is contained in:
Lee-Orr
2024-03-11 16:12:11 -04:00
parent 959a43d181
commit fc3ed85192
6 changed files with 56 additions and 27 deletions
+6
View File
@@ -6,12 +6,14 @@ import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
import mergeAssetsDirs from "../vite-multiple-assets";
import { hmrPlugin, presets} from "vite-plugin-web-components-hmr";
export default defineConfig({
cacheDir: "../node_modules/.vite/studio-frontend",
server:{
port: 4200,
host: "localhost",
hmr: true,
},
preview:{
port: 4300,
@@ -25,5 +27,9 @@ export default defineConfig({
"studio-frontend/public",
"dist/studio/public",
]),
hmrPlugin({
include: ['./src/**/*.ts'],
presets: [presets.lit]
})
],
});