Anidetrix / rollup-plugin-styles

🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
242 stars 43 forks source link

How to ignore `external` module style files #172

Open qmhc opened 3 years ago

qmhc commented 3 years ago

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 .