Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support importing style with query string #208

Open
zengguirong opened this issue Feb 8, 2022 · 1 comment
Open

Support importing style with query string #208

zengguirong opened this issue Feb 8, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@zengguirong
Copy link

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'
@Anidetrix Anidetrix self-assigned this Feb 8, 2022
@Anidetrix Anidetrix added the enhancement New feature or request label Feb 8, 2022
@7nik
Copy link

7nik commented Dec 10, 2022

Any ETA?

@Anidetrix are you even OK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants