Hello, I want to use http://gruntjs.com/, on my server, to be able easily minify js and css, and regenerate it when needed using SSH. I can't find any clear instruction, how to set up and use it on webfaction? Is that has to be created as separate app? Full instructions would be appreaciated Thanks, Aidas asked 13 Feb '15, 10:06 Aidas Keburys |
Here's how to install Grunt:
Once that is done, you can invoke grunt from within your project directory by running Hope that helps! answered 13 Feb '15, 18:28 seanf Thanks for help
(18 Feb '15, 15:19)
Aidas Keburys
You're very welcome!
(18 Feb '15, 17:05)
seanf
I tried to follow these steps. I have created Node application, installed Grunt, then I cd to the webapp that I wanted to run Grunt on and tried to run ~/webapps/node/bin/grunt Apparently got this message: Fatal error: Unable to find local grunt. What I'm doing wrong? I want to use grunt to uglify some javascript files in my PHP aplication. Need a bit more detail instructions if possible, as I try to use Grunt for very first time.
(01 Mar '15, 18:35)
Aidas Keburys
I don't get that error when testing this under a test account, so I'm not sure how to fix it. Do you get the same thing if exporting the
(The above commands assume a node application named "
(03 Mar '15, 07:09)
ryans ♦♦
Hi Ryan, I get following if I run the command from node_modules. Could you please explain how I configure it so it uglifies javascript files in another PHP aplication.
(04 Mar '15, 12:08)
Aidas Keburys
That looks like your grunt task is trying to create or modify something directly under
(04 Mar '15, 18:46)
seanf
Hi Sean, Could you please give me some detail instructions. What I do to configure my grunt to find some css/javascript files in another application and uglify them into production files? for e.g.: select2.css and style.css into output.min.css After grunt-cli setup, where and how I configure it to work. Sorry for being pain, just my first experience with grunt.
(04 Mar '15, 20:37)
Aidas Keburys
I've never actually used grunt myself. Have you tried following Grunt's Getting Started instructions?
(04 Mar '15, 23:30)
seanf
showing 5 of 8
show 3 more comments
|