mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
chore: disable mako outside MacOS and Linux (#50837)
Co-authored-by: liuyuan <yuanliu147@qq.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
a63b9e9ffa
commit
388203ff0c
@ -1,6 +1,7 @@
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { defineConfig } from 'dumi';
|
import { defineConfig } from 'dumi';
|
||||||
import * as fs from 'fs-extra';
|
import * as fs from 'fs-extra';
|
||||||
|
import os from 'node:os';
|
||||||
|
|
||||||
import rehypeAntd from './.dumi/rehypeAntd';
|
import rehypeAntd from './.dumi/rehypeAntd';
|
||||||
import remarkAntd from './.dumi/remarkAntd';
|
import remarkAntd from './.dumi/remarkAntd';
|
||||||
@ -21,7 +22,7 @@ export default defineConfig({
|
|||||||
: false,
|
: false,
|
||||||
hash: true,
|
hash: true,
|
||||||
mfsu: false,
|
mfsu: false,
|
||||||
mako: {},
|
mako: ['Darwin', 'Linux'].includes(os.type()) ? {} : false,
|
||||||
crossorigin: {},
|
crossorigin: {},
|
||||||
runtimePublicPath: {},
|
runtimePublicPath: {},
|
||||||
outputPath: '_site',
|
outputPath: '_site',
|
||||||
@ -57,7 +58,10 @@ export default defineConfig({
|
|||||||
analytics: {
|
analytics: {
|
||||||
ga_v2: 'UA-72788897-1',
|
ga_v2: 'UA-72788897-1',
|
||||||
},
|
},
|
||||||
analyze: process.env.NODE_ENV === 'production' ? false : {
|
analyze:
|
||||||
|
process.env.NODE_ENV === 'production'
|
||||||
|
? false
|
||||||
|
: {
|
||||||
analyzerPort: 'auto',
|
analyzerPort: 'auto',
|
||||||
},
|
},
|
||||||
links: [
|
links: [
|
||||||
|
Loading…
Reference in New Issue
Block a user