diff options
| author | rr- <rr-@sakuya.pl> | 2016-05-21 12:35:41 +0200 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2016-05-21 12:35:41 +0200 |
| commit | f7215547248ca87619eeb75a251a5b17fbb2dd1d (patch) | |
| tree | 26d441d530e2011c8903d9822c667200eda09b75 /client/build.js | |
| parent | d8c20b89c63ddd71d4ecb9723f64cac4b1d12ad6 (diff) | |
client/build: don't use CDN for FontAwesome
Diffstat (limited to 'client/build.js')
| -rw-r--r-- | client/build.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/build.js b/client/build.js index 3858830..de06dd5 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() { |