Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Asset Managers with minify & grouping options for standard HTML sites

Asset Managers with minify & grouping options for standard HTML sites

Problem

I mainly work with the CakePHP framework, with the use of the very cool added plugin that Minify and groups selected assets into one whole file, therefore making only one HTTP request for the whole site.

I am now working with designers, who although want very cool dynamically built sites, do not like losing control over building the CSS / design within Dreamweaver. Although just to add, I will add I think I possible am better with CSS - I am now normally using SCSS - than they are :).

So they want to still build in standard CSS and html, I can add things in like backbone to give me router / path management. - Although I have not used it before, so some learning to do there :).

But want I really want to know is, if there are any ways I can group / minify assets just using a PHP plugin? Or a Node.JS plugin which would just output the files I need (it will be a standard web hosting, so no Node.JS support). I think a PHP plugin would be best?

Any ideas?

Or should I look at building one myself?

Thanks Glenn.

Problem courtesy of: Glenn Curtis

Solution

You can use gruntjs. It's a powerful tool that can compile/minify javascript, scss, css, r.js and many more.

It's Nodejs based, so you can simply install it with npm and configure the output of your files in a /public folder which you can upload to your hosting service.

The only need of node.js is on your development environment.

It supports from the box plugins like watch which can recompile / minify at edit mode and there are tons of plugins that can help you with such tasks.

It's pretty much a standart for NodeJS projects.

Solution courtesy of: drinchev

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Asset Managers with minify & grouping options for standard HTML sites

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×