File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
zh/reference/default-theme Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ export const childTheme = (options: DefaultThemeOptions): Theme => {
100
100
extends: defaultTheme (options ),
101
101
102
102
// override layouts in child theme's client config file
103
+ // notice that you would build ts to js before publishing to npm,
104
+ // so this should be the path to the js file
103
105
clientConfigFile: path .resolve (__dirname , ' ./client.js' ),
104
106
105
107
// override component alias
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ export const childTheme = (options: DefaultThemeOptions): Theme => {
100
100
extends: defaultTheme (options ),
101
101
102
102
// 在子主题的客户端配置文件中覆盖布局
103
+ // 注意,你在发布到 NPM 之前会将 TS 构建为 JS ,因此这里需要设置为 JS 文件的路径
103
104
clientConfigFile: path .resolve (__dirname , ' ./client.js' ),
104
105
105
106
// 覆盖组件别名
You can’t perform that action at this time.
0 commit comments