csstools / csstools/postcss-normalize

ForceImport works wrong

オープン
#44 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
CSS
スター
837
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。