egoist/rollup-plugin-postcss

Keep "import css" line to the output file?

Open

#204 geöffnet am 15. Nov. 2019

Auf GitHub ansehen
 (14 Kommentare) (9 Reaktionen) (0 zugewiesene Personen)JavaScript (209 Forks)user submission
enhancementhelp wanted

Repository-Metriken

Stars
 (689 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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