egoist/rollup-plugin-postcss

Keep "import css" line to the output file?

Open

#204 opened on 2019年11月15日

GitHub で見る
 (14 comments) (9 reactions) (0 assignees)JavaScript (689 stars) (209 forks)user submission
enhancementhelp wanted

説明

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

コントリビューターガイド