-
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
组件中import './xxx/pcss'不生效,dumirc配置如下 #1909
Comments
|
我尝试了两种做法均不生效
2-----
plugins/postcss.ts
|
提供下最小可复现仓库 |
https://github.com/ThorSmallice/dumi-test.git pcss使用在Foo组件中 |
没用过 pcss-loader,但从文档来看它返回的是 js module,需要自己把 styles 插入到 DOM 里,示例项目没有做这个步骤所以样式不会生效,ref: https://github.com/fabien-h/pcss-loader#input-and-output |
pcss-loader可以注释掉的,我在其他的webpack项目里只需要这样配置postcss-loader,如下
然后在根目录创建postcss.config.js / postcss.config.cjs 就可以import pcss文件使用了 |
The text was updated successfully, but these errors were encountered: