diff --git a/package.json b/package.json index faee460..eb4c129 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "project-grunt", - "version": "0.5.1", + "version": "0.5.2", "description": "Tasks and scaffolding for an HTML project", "main": "./libs/index.js", "author": { @@ -25,9 +25,9 @@ "grunt-contrib-uglify": "~0.6.0", "grunt-contrib-watch": "~0.6.1", "grunt-springroll-helper": "~0.1.1", - "grunt-text-replace": "~0.3.12", + "grunt-text-replace": "~0.4.0", "grunt-contrib-connect": "~0.9.0", - "grunt-simple-version": "~0.1.0", + "grunt-simple-version": "~0.2.0", "load-grunt-config": "~0.16.0", "prompt": "~0.2.13", "lodash": "~2.4.1", diff --git a/tasks/version.js b/tasks/version.js index ca05dda..b8bed95 100644 --- a/tasks/version.js +++ b/tasks/version.js @@ -2,15 +2,6 @@ module.exports = { options : { 'build.json' : 'version', 'bower.json' : 'version', - 'deploy/index.html' : function(contents, version){ - return contents.replace( - /src\=(\"|\')([^\?\n\r\"\']+)(\?v\=[a-z0-9\.]*)?(\"|\')/ig, - 'src="$2?v='+version+'"' - ) - .replace( - /href\=(\"|\')([^\?\n\r\"\']+\.css)(\?v\=[a-z0-9\.]*)?(\"|\')/ig, - 'href="$2?v='+version+'"' - ); - } + 'deploy/index.html' : 'cache-bust' } }; \ No newline at end of file