php - build system (watch,concat,minify) for centralized javascript css template -


just finishing new redesign (responsive html5) , i'm wondering what's simplest way run automatic build system.

my site's templates grab javascript , css locations 2 include files, it's not need build system goes through whole site minifying , tweaking, etc.

essentially i'm imagining workflow this:

  • if upload changes js or css directories, system notices updates , calls minify , concatenation process.
  • the php files call js , css minified/concatenated files can generate filename md5 hash setting long expires.

what's simplest way this? if it's couple of files need install grunt, etc? best use inotifywait?

this might you're looking for: https://github.com/mrclay/minify


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -