-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
配置完chainWebpack后不生效 #2577
Comments
@sorrycc 不要连看都不看就关掉问题好吧,就是按照那种方式配置 |
给复现仓库,我看下。 |
@sorrycc https://github.com/fengxinming/umi-admin 就用umi脚手架生成一个普通demo即可 |
看了下,现在不支持 stylus 的自定义配置,不是额外加一个 stylus-loader 就可以,得和 css-loader、style-loader、mini-css-extract-plugin 配合着用才可以。 建议用 less 或 sass,或者自己研究下如何实现 styl,也可以给 umi 提 PR 做。 |
issue 关了,需要这个功能的话直接提 PR 解决。 |
@sorrycc 我之前的项目用了stylus,里面加了一些全局高级特性,less和sass都加不了,暂时不考虑less或者sass,你能不能确认webpack-chain有没有问题,或者能不能在.umirc.js里面配置非chain的webpack配置,因为从打印上看,貌似连stylus-loader都没有被加载。 |
我也遇到这个问题了,我配置了 |
我在 .umirc.ts 里配置了 |
我写了个自定义loader,按照这种方式配置,可以执行 https://blog.csdn.net/qq_37728271/article/details/100519531 。但是在某次修改了一个传参后,就进不去这个loader了。再改回原样也不行。删掉项目重新来一遍,也不行。。。 |
What happens?
在.umirc.local.js文件中配置chainWebpack之后,所添加的配置未生效。
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior:
You may need an appropriate loader to handle this file type.
Expected behavior
Context
The text was updated successfully, but these errors were encountered: