-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLI interace interferes when requiring node-sass #167
Comments
If you're just trying to require the Sass processing, what about following the pattern here https://github.com/andrew/node-sass/blob/master/examples/middleware.js |
I think this is a problem, people should be able to use it outside of the command line in anyway they see for with the cli getting in the way |
Hey, I tried to reproduce this issue on my personal computer and was unable to do so. After further investigation I found that it has to do with loading optimist twice. The project that I had, "JS Compiler", was loading Optimist as was node-sass. There are a few solutions that I can think of:
|
3 sounds like the best option to me, would you be up for sending it as a pull request? |
Fixed #167 where multiple instances of Optimist would conflict.
Just published this as part of v0.7.0: https://github.com/andrew/node-sass/releases/tag/v0.7.0 |
Fix success callback check for generated sourcemap
When requiring node-sass, the cli interface overrides the control-flow of the script.
Upon running, this is what the output is:
I simply commented out this line in the sass.js file:
And it worked.
The text was updated successfully, but these errors were encountered: