We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 565bd7d commit 6321214Copy full SHA for 6321214
.dumirc.ts
@@ -6,11 +6,20 @@ import pkg from './package.json';
6
const pkgs = Fs.readdirSync(Path.resolve(__dirname, 'packages'));
7
const pkgName = pkg.name.replace('-monorepo', '');
8
9
+type ENV = 'development' | 'production';
10
+const map: Record<ENV, Parameters<typeof defineConfig>[0]> = {
11
+ development: {},
12
+ production: {
13
+ base: '/react-ui/',
14
+ publicPath: '/react-ui/',
15
+ },
16
+};
17
+const env = process.env['NODE_ENV'] as ENV;
18
+
19
export default defineConfig({
20
+ ...map[env],
21
mfsu: true,
22
outputPath: 'docs-dist',
- base: '/react-ui/',
- publicPath: '/react-ui/',
23
themeConfig: {
24
name: 'react-ui',
25
showLineNum: true,
0 commit comments