egoist/rollup-plugin-postcss

Keep "import css" line to the output file?

Open

#204 建立於 2019年11月15日

在 GitHub 查看
 (14 留言) (9 反應) (0 負責人)JavaScript (209 fork)user submission
enhancementhelp wanted

倉庫指標

Star
 (689 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南