代码拉取完成,页面将自动刷新
import { join } from 'path';
const isProduction = process.env.NODE_ENV === 'production';
export default {
title: 'Graphin',
mode: 'site',
base: '/',
publicPath: '/',
logo: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
favicon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png',
// sitemap: {
// hostname: 'graphin.antv.vision',
// },
extraBabelIncludes: ['@antv/dumi-theme-antv'],
resolve: {
includes: [
'packages/graphin/docs/',
'packages/graphin/src/components',
'packages/graphin-icons/src',
// 'packages/graphin-components/src/',
// 'packages/graphin-graphscope/docs/',
/** local develop */
// 'packages/graphin-components/src/VisSettingPanel',
],
},
alias: {
'@antv/graphin': join(__dirname, 'packages', 'graphin'),
'@antv/graphin-components': join(__dirname, 'packages', 'graphin-components'),
'@antv/graphin-icons': join(__dirname, 'packages', 'graphin-icons'),
'@antv/graphin-graphscope': join(__dirname, 'packages', 'graphin-graphscope'),
},
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
],
],
metas: [
{
name: 'keywords',
content: 'graphin,g6,graph,Graphin,AntV Graph',
},
],
navs: [
null,
{
title: '在线分析工具 G6VP',
path: 'https://insight.antv.antgroup.com',
},
// {
// title: 'GitHub',
// path: 'https://github.com/antvis/Graphin',
// },
],
analytics: isProduction ? { ga: 'UA-148148901-8' } : false,
hash: true,
ssr: {
devServerRender: false,
},
exportStatic: {},
externals: {
react: 'window.React',
'react-dom': 'window.ReactDOM',
antd: 'window.antd',
'@antv/g6': 'window.G6',
},
targets: {
chrome: 80,
firefox: false,
safari: false,
edge: false,
ios: false,
},
theme: {
'@s-site-menu-width': '280px',
'@primary-color': '#873bf4',
},
locales: [
['zh-CN', '中文'],
['en-US', 'English'],
],
links: ['https://gw.alipayobjects.com/os/lib/antd/4.6.6/dist/antd.css'],
scripts: [
'https://gw.alipayobjects.com/os/lib/react/16.13.1/umd/react.development.js',
'https://gw.alipayobjects.com/os/lib/react-dom/16.13.1/umd/react-dom.development.js',
'https://gw.alipayobjects.com/os/lib/antd/4.6.6/dist/antd-with-locales.js',
/** G6 **/
'https://gw.alipayobjects.com/os/lib/antv/g6/4.8.10/dist/g6.min.js',
'https://gw.alipayobjects.com/os/lib/antv/g6/4.8.10/dist/g6.min.js.map',
/** lodash */
'https://gw.alipayobjects.com/os/lib/lodash/4.17.20/lodash.min.js',
],
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。