Skip to content
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

根据官网创建项目,然后进行打包。本地打开打包的文件是空白 #1877

Closed
cangsnage opened this issue Sep 8, 2023 · 2 comments
Labels
question Further information is requested

Comments

@cangsnage
Copy link

``### Question
本地打开打包的docs-dist文件,页面打开空白

Sample Code

`import { defineConfig } from 'dumi';
export default defineConfig({
outputPath: 'docs-dist',
themeConfig: {
name: '文档',
},

});
`

@cangsnage cangsnage added the question Further information is requested label Sep 8, 2023
@PeachScript
Copy link
Member

构建产物不支持用 file:// 形式直接访问 index.html,需要使用 http-server 或站点托管服务托管,比如 nginx 或 GitHub Pages

@peterczg
Copy link

dumi配置文件设置exportStatic: false,然后重新打个包试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants