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

[Bug] umi 3.3.1 版本 项目启动未生成css 的sourcemap文件 #5817

Closed
wlxkzyq opened this issue Dec 14, 2020 · 9 comments · Fixed by #6024
Closed

[Bug] umi 3.3.1 版本 项目启动未生成css 的sourcemap文件 #5817

wlxkzyq opened this issue Dec 14, 2020 · 9 comments · Fixed by #6024
Assignees

Comments

@wlxkzyq
Copy link

wlxkzyq commented Dec 14, 2020

What happens?

A clear and concise description of what the bug is.
项目启动或打包未生成css 的sourcemap文件

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue. Use yarn create @umijs/umi-app then upload to your GitHub
只用用umi 3.3.1版本新创建的项目即可复现问题.(我将版本退至3.2.28则正常生成css的sourcemap)

How To Reproduce

Steps to reproduce the behavior:

  1. 按照umi官方文档 yarn create @umijs/umi-app; yarn install ; yarn start 启动项目

Expected behavior

  1. 生成umi.css 的sourcemap

Context

  • Umi Version: 3.3.1
  • Node Version: v14.13.1
  • Platform: windows
@wlxkzyq wlxkzyq changed the title [Bug] umi 3.3.1 版本 项目启动或打包未生成css 的sourcemap文件 [Bug] umi 3.3.1 版本 项目启动未生成css 的sourcemap文件 Dec 14, 2020
@ycjcl868
Copy link
Contributor

css sourcemap 是指?

@wlxkzyq
Copy link
Author

wlxkzyq commented Dec 14, 2020

image
希望展示成如下形式
image

@wlxkzyq
Copy link
Author

wlxkzyq commented Dec 14, 2020 via email

@ycjcl868 ycjcl868 self-assigned this Dec 14, 2020
@ycjcl868
Copy link
Contributor

复现

@wlxkzyq
Copy link
Author

wlxkzyq commented Dec 14, 2020

需要我把项目上传到githug 上复现该问题吗? 还是你这边已经复现?

@ycjcl868
Copy link
Contributor

需要我把项目上传到githug 上复现该问题吗? 还是你这边已经复现?

已经复现了,正在修复中

@ycjcl868
Copy link
Contributor

试下

// .umirc.ts
devtool: 'source-map',

@wlxkzyq
Copy link
Author

wlxkzyq commented Dec 14, 2020

试下

// .umirc.ts
devtool: 'source-map',

我这加了该配置还是不行

@sorrycc
Copy link
Member

sorrycc commented Jan 17, 2021

devtool: 'source-map',

这个我试了也不行,

3.3.0 开始有的, @ycjcl868 跟进下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants