One of the neat features baked into the new Visual Studio is the ability to run grunt and gulp tasks. This can be done on demand via the Task Runner Explorer or tied into build events.
Some simple steps for getting started with Grunt are: http://www.iambacon.co.uk/blog/getting-started-with-grunt-sass-and-task-runner-explorer-visual-studio
All pretty cool, if it works! If you’ve got a version of node installed be aware that Visual Studio also ships with its own. It took me a while to track down so thought it worth sharing. If you receive errors when trying to run these tasks eg:
1 2 |
cmd.exe /c gulp --tasks-simple Error: `libsass` bindings not found in C:\Users\### |
Then try swapping the options so that $(PATH) is higher priority than the MS Web tools option:
This was found with some help from:
Nick, you are a lifesaver!
Shame that VS doesn’t treat Node like an extension in the same way that it does with NuGet.
Nailed it! Thanks for this quick fix!
Been struggling with this for hours. You are a genius!
Saved me after an afternoon of banging my head against a wall! Thank you!
Thank you so much!
Wow! Not sure I ever would have found that on my own. Thank you very, very much!
Thank you very much!
This really did the trick. Hats off for that.
You rule! Thanks!
Thank you. It works.
Legend, thank you!
Perfect! Thanks!
OMG! 2 days at this until I gave the solution to the article. Thank you.
Many thanks for the invaluable tip… I would never of found that on my own assertions. God bless the interweb