Anidetrix / rollup-plugin-styles

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

Support importing style with query string #208

Open zengguirong opened 2 years ago

zengguirong commented 2 years ago

The internal loaders use strict file extension regexp,such as: less loader

const loader: Loader<LESSLoaderOptions> = {
  name: "less",
  test: /\.less$/i, // <---
  async process({ code, map }) {}
}

In some special case(usually with custom rollup plugins), when I import style file with query string, this plugin can't recognize it.

import style from './style1.less?string'
import './style2.less?inject'
7nik commented 1 year ago

Any ETA?

@Anidetrix are you even OK?