egoist / egoist/rollup-plugin-postcss

Keep "import css" line to the output file?

Open
#204 14 comments 9 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

# Rollup Config
```
export default {
input: "src/index.js",
output: {
file: "dist/index.js",
format: "cjs"
},
plugins: [
postcss({
extract: true
})
]
};
```

### src/index.js
```
import "./index.less";
```

# Expected bundle
```
require("./index.css")
```

- But the actual result is an empty bundle

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.