mirror of
https://github.com/diffusionstudio/lottie.git
synced 2026-09-14 13:40:33 +08:00
9bd32d9b7b
- Integrated scenesPlugin into Vite configuration for improved scene handling. - Removed obsolete controls.json and lottie.json files to streamline project assets. - Refactored App component to eliminate CanvasProvider, simplifying the component hierarchy. - Updated routing to include scene navigation and default redirection based on available scenes. - Enhanced ScenesContainer and SidebarLeft components for dynamic project and scene management. - Improved CanvasProvider to load scene-specific data and manage animations effectively.
29 lines
625 B
TypeScript
29 lines
625 B
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
import path from "node:path"
|
|
import { defineConfig } from 'vite';
|
|
import solidSvg from 'vite-plugin-solid-svg';
|
|
import solidPlugin from 'vite-plugin-solid';
|
|
import devtools from 'solid-devtools/vite';
|
|
import { scenesPlugin } from './vite-plugins/scenes';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
devtools(),
|
|
solidPlugin(),
|
|
tailwindcss(),
|
|
solidSvg({ defaultAsComponent: true }),
|
|
scenesPlugin(),
|
|
],
|
|
server: {
|
|
port: 3030,
|
|
},
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
});
|