How CSS emit mode works
mainIn emit mode, none of the CSS is exported to your JavaScript files. Instead, the CSS is purely processed and passed along the Rollup build pipeline. This is useful when you want to preprocess CSS and then pass it to another plugin (e.g., rollup-plugin-lit-css).
// rollup.config.js
import styles from "rollup-plugin-styles";
import litcss from "rollup-plugin-lit-css";
export default {
plugins: [
styles({ mode: "emit" }),
// Ensure litcss is listed AFTER styles
litcss(),
],
};