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

[Request] Specify folder on local machine (instead of just files) #1726

Open
jonathan-scholbach opened this issue Dec 31, 2023 · 1 comment

Comments

@jonathan-scholbach
Copy link

jonathan-scholbach commented Dec 31, 2023

I have a directory on my machine containing all my *.user.css files. I synchronize this with git over multiple machines. Currently, I have to import all files in that directory manually.

It would be very convenient to just specify that stylus should use all styles in that directory, instead of having to import all files individually.

@tophf
Copy link
Member

tophf commented Dec 31, 2023

The only way to do it is to use an external tool via nativeMessaging, but I don't want to implement a feature that depends on installing a local binary or nodejs script.

A lame workaround is possible in Chrome which returns the contents of a directory requested via file:// scheme. There's also the new FileSystem API, but it can't reuse the permission to access the file/directory after the requesting page was closed.

We might implement this feature when both Firefox and Chrome support the new FileSystem API along with remembering the access between runs. It may take years.

Meanwhile, you can try to do it via WebDAV.

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

No branches or pull requests

2 participants