Krunch is a NodeJS module entended to help a developer quickly organize a static codebase.
Krunch will concat, minify, and uglify LESS, JS and HTML files upon file change while you build whatever it is that you're developing.
Krunch is built for speed and watches only files that you specify in your configuration.
As of now Krunch will not watch entire directories or LESS import paths.
npm install krunch -g
Krunch requires a json configuration. Set defaults and overwrite them where necessary. Our program defaults are in the example below.
Now you can include one css/js file in your html vs including all of them, organize files, minify, uglify, and limit your page requests.
Krunch will re-watch your files upon modification to your configuration unless it has been invoked dynmaically through node with no config file.
Files and output locations are required for each krunch job.
Paths found in the default are only prepended to each array of input files. Please specify a direct output file with the full path from root of your project.
If your LESS files use import functionality you will need to specify import paths if your imported less files can not be found by default in the root, /css or /less directories.
var krunch = require'krunch';krunchyour_json_configuration_or_path_to_config_file;