Picture of Michael Arias
Issue running grunt build
by Michael Arias - Monday, 27 October 2014, 5:24 PM
 

When running "grunt build" it resets my entire course back to the demo, could this be an issue with a PATH?

Picture of Stephen Bates
Re: Issue running grunt build
by Stephen Bates - Monday, 27 October 2014, 6:03 PM
 

Michael - Are the course files you're editing in the build folder or the src folder?

Picture of Michael Arias
Re: Issue running grunt build
by Michael Arias - Monday, 27 October 2014, 6:52 PM
 

They are in the build folder, I'm guessing I'm being an amateur and should be editing in the src folder. :)

Picture of Stephen Bates
Re: Issue running grunt build
by Stephen Bates - Monday, 27 October 2014, 7:32 PM
 

Yeah, because every time you run a build, it compiles what's in the src folder and will overwrite what's in the build folder. That confused me at first too. Editing in the build files is convenient because you can preview the changes every time you refresh your browser, just remember to copy the changes over to the src folder before you re-build your course ;)

Picture of Michael Arias
Re: Issue running grunt build
by Michael Arias - Monday, 27 October 2014, 8:16 PM
 

Thanks!

Picture of Steve Flowers
Re: Issue running grunt build
by Steve Flowers - Monday, 27 October 2014, 8:40 PM
 

Running "grunt watch" will automatically move your src to build and recompile all of your .less stuff whenever a change is made in src. Nifty and super handy:)

Picture of Stephen Bates
Re: Issue running grunt build
by Stephen Bates - Monday, 27 October 2014, 9:22 PM
 

Oooh handy tip, i'll have to try that!

Picture of Michael Arias
Re: Issue running grunt build
by Michael Arias - Monday, 27 October 2014, 9:23 PM
 

Great tip, thank you Steve!