tutu/vite.config.ts

29 lines
652 B
TypeScript
Raw Normal View History

2024-07-14 12:28:44 +00:00
import { defineConfig } from "vite";
import solid from "vite-plugin-solid";
import solidStyled from "vite-plugin-solid-styled";
import suid from "@suid/vite-plugin";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig(({ mode }) => ({
plugins: [
suid(),
solid(),
solidStyled({
filter: {
include: "src/**/*.{tsx,jsx}",
exclude: "node_modules/**/*.{ts,js,tsx,jsx}",
},
}),
VitePWA({
registerType: "autoUpdate",
}),
],
css: {
devSourcemap: true,
},
build: {
target: ["firefox98", "safari15.4", "ios15.4", "chrome84", "edge87"],
2024-07-14 13:26:55 +00:00
sourcemap: true,
2024-07-14 12:28:44 +00:00
},
}));