rollup-plugin-styles icon indicating copy to clipboard operation
rollup-plugin-styles copied to clipboard

How to ignore `external` module style files

Open qmhc opened this issue 4 years ago • 0 comments

Thanks for starting this plugin.

Now I have some use cases like this:

index.ts

import 'vexip-ui/dist/vexip-ui.css'
import './style.scss'

// `vexip-ui` is a node module

rollup.config.js

export default [
  {
    external: []
  },
  {
    external: ['vexip-ui']
  }
]

I would like to exclude the style of the module vexip-ui, but all bundles will include the external module style file.

Maybe same to #156 .

qmhc avatar Apr 13 '21 15:04 qmhc