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

Allow Specifying File Extensions with --insert-css-requires Option in Linaria's CLI #1326

Open
digo09 opened this issue Aug 18, 2023 · 0 comments
Labels
enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed needs: triage 🏷 Issue needs to be checked and prioritized

Comments

@digo09
Copy link

digo09 commented Aug 18, 2023

Describe the enhancement

I'm mainly using the CLI as I cannot fully understand and use various build environments. In the CLI options mentioned in Linaria's CLI documentation, it would be even better if we could specify file extensions in addition to directory configurations when using the --insert-css-requires option.

Motivation

It's useful to apply not only to .js files but also .cjs, .mjs, etc., especially when developing libraries or in various environments. I guess the relevant part is around here:

function resolveRequireInsertionFilename(filename: string) {

@digo09 digo09 added the enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed label Aug 18, 2023
@github-actions github-actions bot added the needs: triage 🏷 Issue needs to be checked and prioritized label Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement: proposal 💬 Improvement of current behaviour that needs to be discussed needs: triage 🏷 Issue needs to be checked and prioritized
Projects
None yet
Development

No branches or pull requests

1 participant