加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.umirc.ts 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
import { defineConfig } from 'dumi';
var pxtoviewport = require('postcss-px-to-viewport');
export default defineConfig({
title: 'weui-react-v2',
favicon: '/weui-react-v2/favicon.ico',
logo: '/weui-react-v2/logo.png',
outputPath: 'docs-dist',
nodeModulesTransform: {
type: 'none',
exclude: [],
},
base: '/weui-react-v2/',
publicPath: '/weui-react-v2/',
mode: 'site',
exportStatic: {},
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
// 'react-spring': 'window.ReactSpring',
},
scripts: [
'https://gw.alipayobjects.com/os/lib/react/17.0.1/umd/react.development.js',
'https://gw.alipayobjects.com/os/lib/react-dom/17.0.1/umd/react-dom.development.js',
// 'https://cdn.jsdelivr.net/npm/@react-spring/web@9.0.0-rc.3/index.umd.min.js',
],
extraPostCSSPlugins: [
pxtoviewport({
viewportWidth: 750,
viewportHeight: 4925,
unitPrecision: 5,
viewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
exclude: [/dumi/],
}),
],
navs: [
null,
{
title: 'Gitee',
path: 'https://gitee.com/xueyou2000/weui-react-v2',
},
],
// more config: https://d.umijs.org/config
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化