mirror of
https://github.com/storytold/spark.git
synced 2026-10-17 00:12:59 +00:00
Use vite-plugin-dts
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
import glsl from "vite-plugin-glsl";
|
||||
|
||||
const assetsDirectory = "examples/assets";
|
||||
@@ -30,6 +31,8 @@ export default defineConfig(({ mode }) => {
|
||||
include: ["**/*.glsl"],
|
||||
}),
|
||||
|
||||
dts({ outDir: "dist/types" }),
|
||||
|
||||
{
|
||||
name: "serve-three-alias",
|
||||
configureServer(server) {
|
||||
|
||||
Reference in New Issue
Block a user