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

Specify CLI glob patterns #16

Open
Mqxx opened this issue Nov 7, 2023 · 2 comments
Open

Specify CLI glob patterns #16

Mqxx opened this issue Nov 7, 2023 · 2 comments
Assignees

Comments

@Mqxx
Copy link

Mqxx commented Nov 7, 2023

Hey is it possible to specify glob patterns in the CLI? I would like to compile different sass files which are nested differently under a certain dist folder.

As an example, I have the following folders:

src/client/a.scss
src/client/generator/b.scss

And I would like to compile the following files from it:

dist/a.css
dist/generators/b.css

In ESBuild I can do it like this:

deno run -A https://deno.land/x/esbuild@v0.19.4/mod.js --outdir=dist/ ./src/client/**/index.ts

This generates a glob pattern which is used to store the files with the same nesting under dist. Is there something similar for this sass CLI?

Why would this be useful?

If you have several subpages in your project and do not want to bundle all style files into one file.

Thanks for considering. ~Mqx

@hironichu hironichu self-assigned this Nov 7, 2023
@hironichu
Copy link
Owner

hironichu commented Nov 8, 2023

Hi,

I think it should be fairly easy to add.. however i really don't have time to update this now, i've started an entire rewrite of this module but i will continue this later next year

What u can do if you need CLI commands is implementing your own CLI tool with this library and call it locally without installing denosass

@Mqxx
Copy link
Author

Mqxx commented Nov 9, 2023

Thank you very much! Maybe you can get some inspiration from the parameters or the CLI interface of ESBuild.

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

No branches or pull requests

2 participants