mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +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 { defineConfig } from 'dumi';
|
||||
import * as fs from 'fs-extra';
|
||||
import os from 'node:os';
|
||||
|
||||
import rehypeAntd from './.dumi/rehypeAntd';
|
||||
import remarkAntd from './.dumi/remarkAntd';
|
||||
@ -21,7 +22,7 @@ export default defineConfig({
|
||||
: false,
|
||||
hash: true,
|
||||
mfsu: false,
|
||||
mako: {},
|
||||
mako: ['Darwin', 'Linux'].includes(os.type()) ? {} : false,
|
||||
crossorigin: {},
|
||||
runtimePublicPath: {},
|
||||
outputPath: '_site',
|
||||
@ -57,7 +58,10 @@ export default defineConfig({
|
||||
analytics: {
|
||||
ga_v2: 'UA-72788897-1',
|
||||
},
|
||||
analyze: process.env.NODE_ENV === 'production' ? false : {
|
||||
analyze:
|
||||
process.env.NODE_ENV === 'production'
|
||||
? false
|
||||
: {
|
||||
analyzerPort: 'auto',
|
||||
},
|
||||
links: [
|
||||
|
Loading…
Reference in New Issue
Block a user