view vite.config.ts @ 0:d09d690419e0

start
author drewp@bigasterisk.com
date Sat, 18 Mar 2023 19:34:12 -0700
parents
children 045013c772ed
line wrap: on
line source

import { defineConfig } from "vite";

export default defineConfig({
  base: "https://bigasterisk.com/front-door-display",
  server: {
    host: "0.0.0.0",
    strictPort: true,
    port: 8002,
    hmr: { path: "vite-ws" },
    fs: { allow: ["src", "node_modules", "."] },
  },
  build: {
    assetsDir: "src",
    target: "esnext",
    lib: {
      entry: "src/main.ts",
      formats: ["es"],
    },
    rollupOptions: {
      // input: { app: "src/index.html" },
      external: /^lit/,
    },
  },
  resolve: {
    alias: [{ find: "rdf-canonize-native", replacement: "" }],
  },
  // define: {
  //   global: {},
  // },
});