dumi-theme-vite
v0.2.7
Published
A theme package similar in appearance to Vite Document for the dumi framework.
Readme
dumi-theme-vite
A theme package similar in appearance to Vite Document for the dumi framework.
Usage
Install this theme into devDependencies:
$ npm i dumi-theme-vite -DConfigure it in dumi config file .dumirc.ts:
import { defineConfig } from 'dumi';
export defineConfig({
themeConfig: {
...
},
});That's all, now you can execute dumi dev and enjoy this theme.
Options
TODO
Development
$ pnpm installAfter the dependencies are installed, a symlink from example/.dumi/theme to ../../src will be created automatically, the symlink makes dumi load our theme package as a local theme, so we can start the example directly, HMR is also available:
# switch to example directory
$ cd example
# start dev server to preview
npm run devNote: all Node.js-runtime files should be put into
src/plugindirectory,father-plugin-dumi-themewill transform them to CommonJS dist automatically.
dumi theme development documentation: https://d.umijs.org/theme
LICENSE
MIT
