lottie-minify-plugin
v1.1.3
Published
```ts import { defineConfig } from "vite"; import { lottieMinify } from "lottie-minify-plugin/vite"; export default defineConfig({ plugins: [ lottieMinify({ inline: true, }), ], }); ```
Downloads
3
Readme
vite
import { defineConfig } from "vite";
import { lottieMinify } from "lottie-minify-plugin/vite";
export default defineConfig({
plugins: [
lottieMinify({
inline: true,
}),
],
});
import { lottie } from "../lottie/v1/lottie.json?lottie";
config
export type Option = {
stringify: (data: LottieJSON) => string;
numberFixLength: number;
dropKeyList: string[];
exportDefault: boolean;
exportName: string;
inline: boolean;
};