egoist / egoist/rollup-plugin-postcss

Trim inline sourcemaps emitted from other rollup plugin

Open
#208 1 comment 0 reactions 1 assignee Claimed by @SASUKE40 View on GitHub
contribute welcome enhancement
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

I'm using svelte and when I enable `emitCss` option, rollup-plugin-postcss should receive css "files" with inline sourcemap.

`rollup.config.js`
``` javascript
...

plugins: [
svelte({
...
// Emit CSS as "files" for other plugins to process
emitCss: true
}),

postcss({
extract: true,
sourceMap: true
})

...
]

...
```

But the output has 2 sourcemaps, the inline sorcemap from the emitted svelte css files and from the postcss generated sourcemap. It would be nice to trim the emitted inline sourcemap and extract it to the specified `.map` file, reducing the file size significantly.

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.