diff --git a/docs/src/animationhelpers/vite.config.ts b/docs/src/animationhelpers/vite.config.ts index bf320881..4129d81e 100644 --- a/docs/src/animationhelpers/vite.config.ts +++ b/docs/src/animationhelpers/vite.config.ts @@ -1,6 +1,18 @@ -import {defineConfig} from 'vite'; -import motionCanvas from '@motion-canvas/vite-plugin'; +import { defineConfig } from "vite"; +import motionCanvas from "@motion-canvas/vite-plugin"; export default defineConfig({ - plugins: [motionCanvas()], + plugins: [ + motionCanvas({ + project: ["./src/project.ts"], + }), + ], + build: { + rollupOptions: { + output: { + dir: "../../static/animations", + entryFileNames: "[name].js", + }, + }, + }, });