mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
30 lines
875 B
TypeScript
30 lines
875 B
TypeScript
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { netlifyPlugin } from "@netlify/remix-edge-adapter/plugin";
|
|
import path from 'path'
|
|
import { resolve } from 'node:path'
|
|
|
|
// NB(bt): This configuration file can specify bundler rollup options, compiler plugins,
|
|
// import path resolution, dev server HTTP headers, CORS options, path rewriting, etc.
|
|
// Read the vite docs for more: https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
root: path.resolve(__dirname, 'app'),
|
|
build: {
|
|
outDir: path.resolve(__dirname, 'dist'),
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'app/index.html'),
|
|
login: resolve(__dirname, 'app/login.html'),
|
|
signup: resolve(__dirname, 'app/signup.html'),
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
netlifyPlugin(),
|
|
tsconfigPaths(),
|
|
],
|
|
server: {
|
|
}
|
|
});
|