From b4bdf17c9b961a1911c551b9e4a9b1353d5a401a Mon Sep 17 00:00:00 2001 From: benweet Date: Sat, 21 Sep 2013 16:01:16 +0100 Subject: [PATCH] Fixed fontello icons available offline --- Gruntfile.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 1e157af9..fb2912bd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -77,6 +77,19 @@ module.exports = function(grunt) { { pattern: /@import /g, replacement: '@import (less) ' + }, + ] + } + }, + 'font-parameters': { + files: { + './': 'res-min/themes/*.css', + }, + options: { + replacements: [ + { + pattern: /(font\/fontello\.\w+)\?\w+/g, + replacement: '$1' } ] } @@ -220,6 +233,8 @@ module.exports = function(grunt) { grunt.task.run('string-replace:css-import'); // Run less another time with CSS evaluation and compression grunt.task.run('less:compress'); + // Remove fontello checksum arguments + grunt.task.run('string-replace:font-parameters'); });