Skip to content

Commit

Permalink
chore: disable mako outside MacOS and Linux (ant-design#50837)
Browse files Browse the repository at this point in the history
Co-authored-by: liuyuan <[email protected]>
Co-authored-by: afc163 <[email protected]>
  • Loading branch information
3 people authored Sep 14, 2024
1 parent a63b9e9 commit 388203f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .dumirc.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -21,7 +22,7 @@ export default defineConfig({
: false,
hash: true,
mfsu: false,
mako: {},
mako: ['Darwin', 'Linux'].includes(os.type()) ? {} : false,
crossorigin: {},
runtimePublicPath: {},
outputPath: '_site',
Expand Down Expand Up @@ -57,9 +58,12 @@ export default defineConfig({
analytics: {
ga_v2: 'UA-72788897-1',
},
analyze: process.env.NODE_ENV === 'production' ? false : {
analyzerPort: 'auto',
},
analyze:
process.env.NODE_ENV === 'production'
? false
: {
analyzerPort: 'auto',
},
links: [
{
rel: 'prefetch',
Expand Down

0 comments on commit 388203f

Please sign in to comment.