summaryrefslogtreecommitdiff
path: root/client/build.js
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2019-04-21 17:49:17 +0700
committerHunternif <hunternif@gmail.com>2019-04-21 18:41:46 +0700
commite09e873b9b3a4ad569c859ef4d2982b2666d604e (patch)
treef74fbdab834b97cb55d87bf0b9ce6c06ac8e0b50 /client/build.js
parent01ae7967e8316cb96867923435a1e1db2dffb642 (diff)
client: update fontawesome
Diffstat (limited to 'client/build.js')
-rwxr-xr-xclient/build.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/build.js b/client/build.js
index 44d8c01..a6af310 100755
--- a/client/build.js
+++ b/client/build.js
@@ -137,7 +137,7 @@ function bundleCss() {
}
fs.copyFileSync(
- './node_modules/font-awesome/css/font-awesome.min.css',
+ './node_modules/@fortawesome/fontawesome-free/css/all.min.css',
'./public/css/vendor.min.css');
if (process.argv.includes('--gzip')) {
gzipFile('./public/css/vendor.min.css');
@@ -228,15 +228,15 @@ function bundleBinaryAssets() {
fs.copyFileSync('./img/transparency_grid.png', './public/img/transparency_grid.png');
console.info('Copied images');
- fs.copyFileSync('./fonts/open_sans.woff2', './public/fonts/open_sans.woff2')
- for (let file of glob.sync('./node_modules/font-awesome/fonts/*.*')) {
+ fs.copyFileSync('./fonts/open_sans.woff2', './public/webfonts/open_sans.woff2')
+ for (let file of glob.sync('./node_modules/@fortawesome/fontawesome-free/webfonts/*.*')) {
if (fs.lstatSync(file).isDirectory()) {
continue;
}
- fs.copyFileSync(file, path.join('./public/fonts/', path.basename(file)));
+ fs.copyFileSync(file, path.join('./public/webfonts/', path.basename(file)));
}
if (process.argv.includes('--gzip')) {
- for (let file of glob.sync('./public/fonts/*.*')) {
+ for (let file of glob.sync('./public/webfonts/*.*')) {
if (file.endsWith('woff2')) {
continue;
}
@@ -285,7 +285,7 @@ function makeOutputDirs() {
const dirs = [
'./public',
'./public/css',
- './public/fonts',
+ './public/webfonts',
'./public/img',
'./public/js'
];