From 4beab96f83027c3b4cd7a96e4f94b61b5ac53b34 Mon Sep 17 00:00:00 2001 From: Kurtis Lew Date: Fri, 10 Feb 2023 09:04:20 -0800 Subject: [PATCH] feat(docs/animationhelpers): Update compiled animation export path in vite.config.ts --- docs/src/animationhelpers/vite.config.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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", + }, + }, + }, });