postcss-import: Duplicate when importing
Hi, I’m not sure if it’s a bug or something I misunderstood.
With webpack, I import the same file in two different css files but it gets inlined twice.
A.css:
@import "core/cssutils.css";
B.css:
@import "core/cssutils.css";
core/cssutils.css:
body {
font-family: verdana;
}
Webpack:
postcss: function() {
return [
postcssImport
]
},
Final result:
body{font-family:verdana}body{font-family:verdana}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 5
- Comments: 30 (6 by maintainers)
Did you mean to leave
"postcss-import"
in that config? Seems you are saying that I convertcolors.css
tocolors.json
and provide it through thepostcss-cssnext
config? In that case there’s no point to"postcss-import"
anymore?postcss.config.js
We have indeed a test to ensure there is no duplicates by default.