@chapanda/style-preset-interactive
v1.4.3
Published
chapanda style preset interactive document
Downloads
314
Maintainers
Readme
@chapanda/style-preset-interactive
基于中心规范基础的样式预设库交互式文档.
使用
vite
// vite.config.ts
import {defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import { vitePresetDocs } from "@chapanda/style-preset-interactive";
export default defineConfig({
plugins: [
solid(),
vitePresetDocs(),
],
resolve: {
alias: {},
},
})
webpack
const { webpackPresetDocs } = require("../node_modules/@chapanda/style-preset-interactive/index");
module.exports = {
// ...
devServer: {
// ...
setupMiddlewares: (middlewares, devServer) => {
middlewares = webpackPresetDocs(middlewares, devServer)
return middlewares
},
},
}