-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: 不能和create-react-app配套使用 #121
Comments
Guess this related to umijs/umi#1959 |
怎么解决呢?文档中没看到有修改这个配置项的说明 |
@PeachScript 尝试在配置路由中加了 document,但是不起作用 https://umijs.org/zh/guide/html-template.html#%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF 而且只有默认的根路径会打错模板,其他路径没问题。 |
@xiaohuoni 这个场景配置 document.ejs 是正解么 |
在 dumi (Umi) 的约定中,public 会作为默认拷贝到 dist 的文件夹,和 cra 的文件夹冲突了,我们只能二选一;如果选择保留 cra 的逻辑,可使用 chainWebpack(memo) {
memo.plugins.delete('copy');
} 如果 dumi 和 cra 的约定都希望保留,可以如法炮制把上述 dumi 的 copy 的规则修改成拷贝类似 |
@PeachScript 还用不惯github新的issues,如果有@我,可以直接钉钉找我下。 |
@xiaohuoni // .umirc.ts
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'dumi',
mode: 'site', // site | doc
chainWebpack(memo) {
memo.plugins.delete('copy');
memo.plugins.store.delete('copy');
},
}); |
@xiaohuoni 使用这种方式,dumi/docs下的md文件,无法引用src目录下的jsx组件 Module parse failed: Unexpected token (4:9) |
Versions
Steps to reproduce
What is Expected?
What is actually happening?
The text was updated successfully, but these errors were encountered: