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

贡献者指南