robheath at December 3rd, 2015 02:00 — #1
Hey Webhook team,
I've been racking my brain the past few days why I can't get my grunt file setup to compile sass on my from scratch webhook site.
Through the troubleshooting process I thought to myself "Let me just create a new trial site and install the preprocessor theme".
So I did that. Fresh site, only thing added is the Webhook preprocessor addon right from the CMS startup page.
My goal was to checkout the gruntfile / package file as an example and compare it to what I had written on my custom site. But even my test site won't compile sass file.
When I open the main.sass and wrote a simple line of css (I simply declared h1 to the color red), and hit save, it crashes Webhook localhost and I have to hit "Run local server" again to start it up.
Now I also tried out altering the main.LESS file the comes with the preprocessor theme addon and it complies just fine :/ So it seems it's only the Sass compiling that crashes it.
Not sure what to do here but I am determined not to go back to GUI compilers, so any help would be greatly appreciated.
dkenzik at December 3rd, 2015 07:47 — #2
This could be caused by not having the
grunt-contrib-sass pre-requisites installed.
grunt-contrib-sass npm module requires the sass ruby gem. See here:
But, without seeing the actual errors produced by your local run-server, it's hard to say.
robheath at December 3rd, 2015 09:26 — #3
So make sure Sass is installed on my computer. I hope that's the issue. That would be an easy fix
I'll try that out tonight when I get home.
robheath at December 6th, 2015 16:36 — #4
Didn't fix the issue :/ I went back to using a GUI for the time being just to get the job done, but I'd still love to figure out exactly whats going on. What can I provide to better figure out the issue?
rdwatters at December 10th, 2015 19:56 — #5
@robheath I was able to get grunt going locally with webhook. Are you able to point me to your code so I can give it a shot? Cheers.
robheath at December 14th, 2015 13:43 — #6
Even my initial demo site I setup wasn't working so basically if you just create a new sass site, you'll have what I have :/
rdwatters at December 22nd, 2015 14:16 — #7
@robheath Here is my gruntfile. Of course, I was pretty obsessed with CRP when I built this out, so I'm guessing you'll use an easier/saner approach to your folder structure and SASS files. Let me know if you have any questions: