Fixed fontello icons available offline
This commit is contained in:
parent
5558aad414
commit
b4bdf17c9b
15
Gruntfile.js
15
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');
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user