egoist/rollup-plugin-postcss

Keep "import css" line to the output file?

Open

#204 建立於 2019年11月15日

在 GitHub 查看
 (14 留言) (9 反應) (0 負責人)JavaScript (689 star) (209 fork)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

貢獻者指南