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

JS CLI: Load plugins from the command line #148

Open
Hackzzila opened this issue May 30, 2017 · 7 comments
Open

JS CLI: Load plugins from the command line #148

Hackzzila opened this issue May 30, 2017 · 7 comments
Labels
CLI Issues about the command-line tools enhancement JavaScript Issues particular to the Node.js distribution

Comments

@Hackzzila
Copy link

Since this is supposed to replace Ruby Sass, I thought I should ask here. Writing a package manager, I would like to see plugin support like Less, where you can use --foo to use the plugin less-plugin-foo. Currently I had to make my own command for compiling Sass (using node-sass) so I can have preprocessors, postprocessors, functions, and importers. Related to #10 and #9.

@nex3 nex3 changed the title Less style plugin support JS CLI: Load plugins from the command line Jun 1, 2017
@nex3
Copy link
Contributor

nex3 commented Jun 1, 2017

I'd definitely like to support some kind of plugin loading from the CLI (although allowing any flag name seems like a forwards-compatibility nightmare). Maybe something like --use foo.

That said, this is probably a post-1.0.0 feature—I want to get the core and the node-sass compatibility rock solid first.

@nex3 nex3 added enhancement CLI Issues about the command-line tools labels Jun 1, 2017
@Hackzzila
Copy link
Author

Once #10 and #9 are done I could probably make a PR for this, since I happen to know Dart.

@nex3 nex3 added the JavaScript Issues particular to the Node.js distribution label Mar 22, 2018
@gabrielmaldi
Copy link

gabrielmaldi commented Apr 26, 2018

Now that Dart Sass supports both sourcemaps and extension functions, I'd love to migrate from Ruby Sass right away!

The one thing that's stopping us is this issue. @Hackzzila, now that #9 and #10 are done, would you be willing to work on a PR for this? Thanks!

@xzyfer
Copy link

xzyfer commented Apr 26, 2018

We have been discussing this on and off in Node Sass. The current thinking is something like .sassrc file.

@nex3
Copy link
Contributor

nex3 commented Apr 26, 2018

Before taking a PR, we need to come up with an interface that's agreed on between Dart Sass and Node Sass. My preference would also be to wait on this until we have the next revision of the function and importer APIs implemented, so that we don't encourage more use of the existing APIs that we plan to deprecate.

@bdkjones
Copy link

bdkjones commented Apr 7, 2020

It's been a few years since any of the "plugin" issue threads have seen updates. Is there a consensus on how this will move forward yet?

@nex3
Copy link
Contributor

nex3 commented Apr 16, 2020

Issues like these need someone to drive them forward in order for progress to be made. The path forward is clear: create a design proposal and iterate on it based on feedback. But someone needs to be willing to invest the time and energy to walk down that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Issues about the command-line tools enhancement JavaScript Issues particular to the Node.js distribution
Projects
None yet
Development

No branches or pull requests

5 participants