Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

pass directory to render/rendersync #2241

Closed
z1haze opened this issue Feb 2, 2018 · 2 comments
Closed

pass directory to render/rendersync #2241

z1haze opened this issue Feb 2, 2018 · 2 comments

Comments

@z1haze
Copy link

z1haze commented Feb 2, 2018

Why is there no possible way to pass a input file directory to node-sass with using the javascript api? It doesnt make sense that you can only pass a input directory via command line, but you HAVE to pass a file when using the script API. please do something about this, we can can bring our node-sass task into a separate script.

@xzyfer
Copy link
Contributor

xzyfer commented Feb 5, 2018

It doesnt make sense

It makes perfect sense. Node Sass only turns a single input file into a single output file. Full stop.

you can only pass a input directory via command line

You can only pass an input directory when using --watch. In this case Node Sass watches the whole directory for changes, and compiles the changed files one at a time.


Compiling a whole directory is a feature we could consider for version 5

@xzyfer xzyfer closed this as completed Feb 5, 2018
@z1haze
Copy link
Author

z1haze commented Feb 5, 2018 via email

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

No branches or pull requests

2 participants