-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Document executable (CLI) --with argument #1936
Comments
The Feel free to document this and send a PR :) |
Thanks for sharing good news, @Panya :) I'm still having some trouble getting this to work via an NPM build script. Here's what I've got:
This throws the following error:
Could it be the backslashes |
You forgot
|
everything @Panya said is right, but FIY this method won't work with poststylus because the |
@seaneking yep, but you actually can use |
yep so that's one solution, just make sure |
Thanks folks :) |
Is there a reason that the
--with
argument for the executable (CLI) isn't documented?It took me lots of digging to find it, and I'm still not 100% clear on how it works. It's origins:
this PR: #398
and this issue: #397
4 years (!) later, it's in the code, here: https://github.com/stylus/stylus/blob/master/bin/stylus#L312
Context / Use-Case
I'm trying to figure out how to use postcss plugins with Stylus, via an NPM script development-env setup. There's just been this awesome stylus plugin put together, but it doesn't seem possible to use it via Stylus' CLI. Essentially, it needs an array of postcss plugins passed to it (which it includes as a function argument in its exported function (source: https://github.com/seaneking/poststylus/blob/master/index.js#L7)). Not sure if this is more of a topic for here or there (issue created there: madeleineostoja/poststylus#1).
I'd be happy to submit a PR for the
--with
argument, only I'm not 100% clear on its usage!Can anyone explain?
The text was updated successfully, but these errors were encountered: