Fixed fontello icons available offline

This commit is contained in:
benweet 2013-09-21 16:01:16 +01:00
parent 5558aad414
commit b4bdf17c9b

View File

@ -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');
});