1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
thelounge_ynh/sources/scripts/build-fontawesome.js
2016-11-24 11:44:51 +01:00

26 lines
502 B
JavaScript

"use strict";
var fs = require("fs-extra");
var srcDir = "./node_modules/font-awesome/fonts/";
var destDir = "./client/fonts/";
var fonts = [
"fontawesome-webfont.woff",
"fontawesome-webfont.woff2"
];
fs.ensureDir(destDir, function(dirErr) {
if (dirErr) {
console.error(dirErr);
}
fonts.forEach(function(font) {
fs.copy(srcDir + font, destDir + font, function(err) {
if (err) {
console.error(err);
} else {
console.log(font + " successfully installed.");
}
});
});
});