egoist / egoist/rollup-plugin-postcss

Multiple imports creates duplicates.

Open
#26 4 comments 6 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

This issue is specifically tied to the `postcss-modules` plugin but I am not sure if the issue is located here. Let me know if otherwise.

Given the following js file:

```js
import './style1.css'
import './style2.css'
```

With the following css files:

*style1.css*
```css
.style1 {
composes: style2 from "./style2.css";
color: gold;
}
```

*style2.css*
```css
.style2 {
background: green;
}
```

`style2.css` gets duplicated since it is composed and imported (seems to be treated separately).

Can you think of a way around this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.