3 Star 4 Fork 0

alibaba/form-render

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.dumirc.ts 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
zhanbo.lh 提交于 2024-11-14 10:31 . feat: xflow 迭代开发
import { defineConfig } from 'dumi';
import path from 'path';
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
export default defineConfig({
favicons: ['https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png'],
outputPath: 'docs-dist',
// locales: [{ id: 'zh-CN', name: '中文' }, { id: 'en-US', name: 'English' }],
locales: [{ id: 'zh-CN', name: '中文' }],
themeConfig: {
name: 'XRender',
logo: 'https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png',
footer: false,
socialLinks: {
github: 'https://github.com/alibaba/x-render',
},
nav: {
'zh-CN': [
{
title: 'FormRender',
link: '/form-render',
},
{
title: 'TableRender',
link: '/table-render',
},
{
title: 'ChartRender',
link: '/chart-render',
},
{
title: 'Playground',
link: '/playground',
}
],
// 'en-US': [
// {
// title: 'FormRender',
// link: '/en/form-render',
// }
// ]
},
},
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
'antd',
],
[
'import',
{
libraryName: '@alifd/next',
libraryDirectory: 'lib',
},
'@alifd/next',
],
],
ignoreMomentLocale: true,
chainWebpack(config, { webpack }) {
config.plugin('monaco-editor').use(MonacoWebpackPlugin);
},
headScripts: [
'https://g.alicdn.com/code/lib/react/17.0.1/umd/react.production.min.js',
'https://g.alicdn.com/code/lib/react-dom/17.0.1/umd/react-dom.production.min.js'
],
plugins: [require.resolve('./scripts/dumi-plugin/redirect')],
alias: {
'form-render/es': path.resolve(__dirname, 'packages/form-render/src'),
'form-render': path.resolve(__dirname, 'packages/form-render/src'),
'table-render': path.resolve(__dirname, 'packages/table-render/src'),
'form-render-mobile': path.resolve(__dirname, 'packages/form-render-mobile/src'),
'@xrenders/schema-builder': path.resolve(__dirname, 'tools/schema-builder/src'),
'@xrenders/data-render': path.resolve(__dirname, 'packages/data-render/src'),
'@xrenders/xflow': path.resolve(__dirname, 'packages/x-flow/src'),
},
codeSplitting: { jsStrategy: 'granularChunks' },
//...(process.env.NODE_ENV === 'development' ? {} : { ssr: {} }),
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_alibaba/form-render.git
git@gitee.com:mirrors_alibaba/form-render.git
mirrors_alibaba
form-render
form-render
master

搜索帮助