b01d783a by Adam Heath

Start working on renaming files based on their hash.; WORKS!

1 parent ddded37c
......@@ -39,7 +39,16 @@ module.exports = function (grunt) {
}]
},
},
};
rev: {
css: {
files: {
src: _.map(common.css.options.dirs, function (value) {
return 'dist/' + value + '/{,**/}*.css';
}),
}
},
},
};
var checkList = [];
var buildList = [
'check',
......@@ -213,6 +222,9 @@ module.exports = function (grunt) {
}]
};
initConfig.clean.dist.files[0].src.push('.grunt/usemin-css');
initConfig.usemin.css = _.map(common.css.options.dirs, function (value) {
return 'dist/' + value + '/{,**/}*.css';
});
buildList.push('useminPrepare'); // html
//buildList.push('usemin:views'
......@@ -230,7 +242,7 @@ module.exports = function (grunt) {
//'modernizr');
//buildList.push('uglify:generated'); // montyPython
//'rev:dist'); // montyPython
//buildList.push('rev:css'); // montyPython
buildList.push('rev:css'); // montyPython
//buildList.push('revconfig'); // montyPython
//buildList.push('uglify:bower'); // montyPython
//buildList.push('uglify:requireconfig'); // montyPython
......
......@@ -23,6 +23,7 @@
"grunt-contrib-cssmin": "~0.12.3",
"grunt-contrib-jshint": "~0",
"grunt-contrib-htmlmin": "~0",
"grunt-rev": "~0",
"grunt-usemin": "~2",
"lodash": "~2",
"punch": "~0.5.46",
......