Consider the function cleanOutputDir in webfont.js
function cleanOutputDir(done) {
var htmlDemoFileMask = path.join(o.destCss, o.fontBaseName + '*.{' + o.stylesheet + ',html}');
var files = glob.sync(htmlDemoFileMask).concat(wf.generatedFontFiles(o));
async.forEach(files, function(file, next) {
fs.unlink(file, next);
}, done);
}
Var htmlDemoFileMask represents a set of files (due to wildcard symbol). So the function will delete icons.less, icons-something.less and so on. If I have a less file whose name has the same prefix, that one will be deleted as well. This could seem a strange behavior in my opinion and it could lead to unexpected results.
This is similar to #194
Consider the function cleanOutputDir in webfont.js
Var
htmlDemoFileMask
represents a set of files (due to wildcard symbol). So the function will delete icons.less, icons-something.less and so on. If I have a less file whose name has the same prefix, that one will be deleted as well. This could seem a strange behavior in my opinion and it could lead to unexpected results.