Files
Brian Olsen 1a19ffc292 Fix the icon font generation
This switches to the maintained `grunt-webfonts` and sets options
to fix the font generation by normalizing the icon sizes.
2021-10-09 23:49:05 +02:00

32 lines
715 B
JavaScript

module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-webfonts");
grunt.initConfig({
webfont: {
icons: {
src: "./*.svg",
dest: "../shell/public/icons",
destCss: "../shell/client/styles",
options: {
font: "icons",
engine: "node",
autoHint: false,
htmlDemo: false,
normalize: true,
fontHeight: 1001,
fontFilename: 'icons-{hash}',
relativeFontPath: "/icons/",
stylesheet: "scss",
templateOptions: {
classPrefix: "icon-",
mixinPrefix: "icon-",
},
},
},
},
});
grunt.registerTask("default", ["webfont"]);
};