dart-sass icon indicating copy to clipboard operation
dart-sass copied to clipboard

JS CLI: Load plugins from the command line

Open Hackzzila opened this issue 8 years ago • 7 comments

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.

Hackzzila avatar May 30 '17 15:05 Hackzzila

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 avatar Jun 01 '17 22:06 nex3

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

Hackzzila avatar Jun 02 '17 00:06 Hackzzila

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!

gabrielmaldi avatar Apr 26 '18 05:04 gabrielmaldi

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

xzyfer avatar Apr 26 '18 06:04 xzyfer

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.

nex3 avatar Apr 26 '18 18:04 nex3

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?

bdkjones avatar Apr 07 '20 04:04 bdkjones

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.

nex3 avatar Apr 16 '20 01:04 nex3