aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/assets/fa-only-woff-loader.js
diff options
context:
space:
mode:
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)[^;]*;/, ';');