mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-11 02:30:56 +08:00
Fix Bezier-rs interactive demos and migrate its Webpack bundler to Vite
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
import path from "path";
|
||||
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const projectRootDir = path.resolve(__dirname);
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: "",
|
||||
resolve: {
|
||||
alias: [{ find: "@", replacement: path.resolve(projectRootDir, "src") }],
|
||||
},
|
||||
server: {
|
||||
port: 8000,
|
||||
host: "0.0.0.0",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user