yohangz / rollup-plugin-ignore-import

Ignore import rollup plugin
MIT License
8 stars 5 forks source link

support body options && ts type checking #2

Closed hanzhangyu closed 5 years ago

hanzhangyu commented 5 years ago

Broken by this case:

[
  noopImport({
    extensions: [".css"]
  }),
  postcss(/* resolve saas */), // if there has some scss files
]
// (plugin postcss) CssSyntaxError: iconfont.css:1:1: Unknown word

So, It`s useful by support body options with this case

noopImport({
  extensions: [".css"],
  body: "/* [PLACEHOLDER] import iconfont file by youself */"
})
yohangz commented 5 years ago

Thanks for your contribution. I will update the documentation and publish the changes.