From 52a49f36ed9faa92b5782e95e894edb56be01343 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Thu, 12 Feb 2015 22:34:02 +0300 Subject: [PATCH] * version-task --- Gruntfile.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 0f1db6c..26e1656 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -5,7 +5,16 @@ module.exports = function (grunt) { pkg: grunt.file.readJSON('package.json'), version: { - src: ['<%= pkg.exportName %>.js', '*.json'] + js: { + src: ['<%= pkg.exportName %>.js', '*.json'] + }, + cdn: { + options: { + prefix: '(cdnjs\\.cloudflare\\.com\\/ajax\\/libs\\/Sortable|cdn\\.jsdelivr\\.net\\/sortable)\\/', + replace: '[0-9\\.]+' + }, + src: ['README.md'] + } }, jshint: {