generated from methanium/template
Compare commits
1 changed files with 8 additions and 11 deletions
|
|
@ -10,16 +10,13 @@ import { defineConfig, type Plugin } from "vite";
|
||||||
|
|
||||||
const root = path.dirname(fileURLToPath(import.meta.url));
|
const root = path.dirname(fileURLToPath(import.meta.url));
|
||||||
|
|
||||||
export default defineConfig(({ command }) => ({
|
export default defineConfig({
|
||||||
server:
|
server: {
|
||||||
command === "serve"
|
https: {
|
||||||
? {
|
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
|
||||||
https: {
|
key: fs.readFileSync(path.resolve(root, "../../.dev/key.pem")),
|
||||||
cert: fs.readFileSync(path.resolve(root, "../../.dev/cert.pem")),
|
},
|
||||||
key: fs.readFileSync(path.resolve(root, "../../.dev/key.pem")),
|
},
|
||||||
},
|
|
||||||
}
|
|
||||||
: undefined,
|
|
||||||
plugins: [
|
plugins: [
|
||||||
tanstackRouter({ target: "react", autoCodeSplitting: true }),
|
tanstackRouter({ target: "react", autoCodeSplitting: true }),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
|
|
@ -35,4 +32,4 @@ export default defineConfig(({ command }) => ({
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue