csstools / csstools/postcss-normalize
ForceImport works wrong
- Ngôn ngữ chính
- CSS
- Star
- 837
- Fork
- 40
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### How To Reproduce:
1) create a basic project with webpack 4 and postcss
2) for postcss-normalize set ```forceImport: true``` option
3) in entry file add several imports "[someName].css"
4) build project
https://github.com/Yegorich555/FromScratch_React/tree/postcss-forceImport-bug - for this link use npm run build-dev;
5) look into main.css file
### Actual behavior
We have postcssNormalize result as many as we have css imports in main.js
https://www.screencast.com/t/uBP6hZegP
### Expected behavior
```forceImport``` should inject normalize-result once independently on the number of css imports into main.js. Also, this reason why it also doesn't work with *.vue files since ones have several css import (scoped and global)
Hướng dẫn đóng góp
Hướng nghiên cứu
Reproduce the issue with the linked project by running npm run build-dev, then inspect main.css after adding several CSS imports in the entry file. Trace how forceImport is applied in the webpack/PostCSS setup; done means the normalize result is injected only once, including when multiple scoped and global CSS imports come from a Vue file.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- css, webpack
- Lĩnh vực
- build-system, frontend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100