Skip to content

Getting Started

Create a Project

just like vite create

shell
pnpm create monkey
# npm create monkey
# yarn create monkey

then you can choose the following template

JavaScriptTypeScript
empty (only js)empty-ts (only ts)
vanilla (js + css)vanilla-ts (ts + css)
vuevue-ts
reactreact-ts
preactpreact-ts
sveltesvelte-ts
solidsolid-ts
Sample: Initializing a Template

vue-ts

Sample: Hot Module Replacement

hmr

Sample: Build & Preview

build&preview

Install the Plugin

shell
pnpm add -D vite-plugin-monkey
# npm i -D vite-plugin-monkey
# yarn add -D vite-plugin-monkey

note: vite-plugin-monkey must be the last item of plugin list