This gist shows how to reproduce thgh/rollup-plugin-css-only#54.
Clone the gist and run the following:
npm install
npx rollup -c
Inspect output.css
to see @charset "utf-8";
in the middle of a file. This is invalid CSS output, because @charset
must only appear at the top of a CSS file.
References: