Use grunt-wp-assets for version task

* default use filename version revving instead of querystring
* versioning file will be ignore
This commit is contained in:
Hariadi Hinta
2014-02-20 10:27:48 +08:00
parent 11930de7ed
commit 77e2fdb4bd
3 changed files with 7 additions and 8 deletions

View File

@@ -57,12 +57,9 @@ module.exports = function(grunt) {
}
},
version: {
options: {
file: 'lib/scripts.php',
css: 'assets/css/main.min.css',
cssHandle: 'roots_main',
js: 'assets/js/scripts.min.js',
jsHandle: 'roots_scripts'
assets: {
src: ['assets/css/main.min.css', 'assets/js/scripts.min.js'],
dest: 'lib/scripts.php'
}
},
modernizr: {
@@ -119,7 +116,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-wp-version');
grunt.loadNpmTasks('grunt-wp-assets');
grunt.loadNpmTasks('grunt-modernizr');
// Register tasks