0.1.1 • Published 10 years ago
grunt-xsm-hash v0.1.1
grunt-xsm-hash
grunt plugin for rename file with hash
usage
module.exports = function (grunt) {
grunt.initConfig({
xsmhash: {
test: {
options: {
length: 16, // hash code length
replace: true, // replace origin file or output to dest folder
checkHash: true, // check if origin file name like already contain hash code
},
src: 'src/*.js',
dest: 'dist/' // only used when options.replace ==> false
}
}
});
grunt.loadNpmTasks('grunt-xsm-hash');
};