diff --git a/client/build.js b/client/build.js index 38588307..de06dd5a 100644 --- a/client/build.js +++ b/client/build.js @@ -120,6 +120,10 @@ function bundleCss() { } writeFile('./public/css/app.min.css', minifyCss(css)); + copyFile( + './node_modules/font-awesome/css/font-awesome.min.css', + './public/css/vendor.min.css'); + console.info('Bundled CSS'); }); } @@ -177,6 +181,14 @@ function bundleJs(config) { function bundleConfig(config) { writeFile( './js/.config.autogen.json', JSON.stringify(config)); + glob('./node_modules/font-awesome/fonts/*.*', {}, (er, files) => { + for (let file of files) { + if (fs.lstatSync(file).isDirectory()) { + continue; + } + copyFile(file, path.join('./public/fonts/', path.basename(file))); + } + }); } function bundleBinaryAssets() { diff --git a/client/html/index.htm b/client/html/index.htm index 27981389..4b846857 100644 --- a/client/html/index.htm +++ b/client/html/index.htm @@ -5,7 +5,7 @@ <!-- configured in the config file --> - + diff --git a/client/package.json b/client/package.json index 190d379f..195fdb0c 100644 --- a/client/package.json +++ b/client/package.json @@ -13,6 +13,7 @@ "camelcase": "^2.1.1", "camelcase-keys": "*", "csso": "^1.8.0", + "font-awesome": "^4.6.1", "glob": "^7.0.3", "html-minifier": "^1.3.1", "js-cookie": "^2.1.0",