aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/assets/fa-only-woff-loader.js
diff options
context:
space:
mode:
authorKurkó Mihály <kurkomisi@users.noreply.github.com>2019-03-13 20:53:52 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-03-13 20:53:52 +0800
commit1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d (patch)
tree0fa275c57dbc7ddd5371d52e842fa91dd4fa5adc /dashboard/assets/fa-only-woff-loader.js
parent1591b63306cababdb37d244432653bbd71c346df (diff)
downloadgo-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.tar
go-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.tar.gz
go-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.tar.bz2
go-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.tar.lz
go-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.tar.xz
go-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.tar.zst
go-tangerine-1a29bf0ee2c5753a6a0f6f57a90d079b4d17702d.zip
dashboard, p2p, vendor: visualize peers (#19247)
* dashboard, p2p: visualize peers * dashboard: change scale to green to red
Diffstat (limited to 'dashboard/assets/fa-only-woff-loader.js')
-rw-r--r--dashboard/assets/fa-only-woff-loader.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/dashboard/assets/fa-only-woff-loader.js b/dashboard/assets/fa-only-woff-loader.js
index 4d3035736..f719f6b18 100644
--- a/dashboard/assets/fa-only-woff-loader.js
+++ b/dashboard/assets/fa-only-woff-loader.js
@@ -16,10 +16,8 @@
// fa-only-woff-loader removes the .eot, .ttf, .svg dependencies of the FontAwesome library,
// because they produce unused extra blobs.
-module.exports = function(content) {
- return content
- .replace(/src.*url(?!.*url.*(\.eot)).*(\.eot)[^;]*;/,'')
- .replace(/url(?!.*url.*(\.eot)).*(\.eot)[^,]*,/,'')
- .replace(/url(?!.*url.*(\.ttf)).*(\.ttf)[^,]*,/,'')
- .replace(/,[^,]*url(?!.*url.*(\.svg)).*(\.svg)[^;]*;/,';');
-};
+module.exports = content => content
+ .replace(/src.*url(?!.*url.*(\.eot)).*(\.eot)[^;]*;/, '')
+ .replace(/url(?!.*url.*(\.eot)).*(\.eot)[^,]*,/, '')
+ .replace(/url(?!.*url.*(\.ttf)).*(\.ttf)[^,]*,/, '')
+ .replace(/,[^,]*url(?!.*url.*(\.svg)).*(\.svg)[^;]*;/, ';');