egoist / egoist/rollup-plugin-postcss
rollup file.type is missing for the CSS output
Open
- Dominant language
- JavaScript
- Stars
- 689
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
Since `rollup@1.21.0` there is a requirement to set output `file.type` to be either 'chunk' or 'asset'. Currently, the `rollup-plugin-postcss` creates a CSS asset without type. The `rollup` mistakenly assumes that type is 'chunk', and classifies the build as a multi-chunk output build, expecting for `output.dir`. When it finds `output.file`, the build is failed with the following error:
```
Error: When building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.