Rspress plugin for live2d, powered by on-my-live2d.
npm install rspress-plugin-live2d
pnpm install rspress-plugin-live2dimport * as path from 'path';
import { defineConfig } from 'rspress/config';
import live2d from 'rspress-plugin-live2d';
export default defineConfig({
root: path.join(__dirname, 'docs'),
title: 'Rspress x Live2d Example',
plugins: [
live2d({
models: [
{
path: 'https://model.oml2d.com/HK416-1-normal/model.json',
position: [0, 60],
scale: 0.08,
stageStyle: {
height: 450,
},
},
],
}),
],
});Find more models and configuration on On My Live2D.
