Skip to content

Commit 0043236

Browse files
committed
website: fix the development preview issue. #365
1 parent a006c2e commit 0043236

File tree

3 files changed

+7
-19214
lines changed

3 files changed

+7
-19214
lines changed

website/.kktrc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default (conf: Configuration, env: 'development' | 'production', options:
2121
VERSION: JSON.stringify(pkg.version),
2222
}),
2323
);
24-
conf.output = { ...conf.output, publicPath: './' };
24+
if (env === 'production') {
25+
conf.output = { ...conf.output, publicPath: './' };
26+
}
2527
return conf;
2628
};

website/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2017",
3+
"target": "es5",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
@@ -11,13 +11,13 @@
1111
"module": "esnext",
1212
"moduleResolution": "node",
1313
"resolveJsonModule": true,
14+
"isolatedModules": true,
1415
"declaration": true,
15-
"baseUrl": "src",
16+
"baseUrl": "./",
1617
"jsx": "react-jsx",
17-
"typeRoots": ["node_modules/@types"],
1818
"noFallthroughCasesInSwitch": true,
1919
"noEmit": true,
20-
"isolatedModules": true
20+
"types": ["jest", "node"]
2121
},
2222
"include": ["src", ".kktrc.ts"]
2323
}

0 commit comments

Comments
 (0)