github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/dashboard/assets/fa-only-woff-loader.js (about) 1 // fa-only-woff-loader removes the .eot, .ttf, .svg dependencies of the FontAwesome library, 2 // because they produce unused extra blobs. 3 module.exports = function(content) { 4 return content 5 .replace(/src.*url(?!.*url.*(\.eot)).*(\.eot)[^;]*;/,'') 6 .replace(/url(?!.*url.*(\.eot)).*(\.eot)[^,]*,/,'') 7 .replace(/url(?!.*url.*(\.ttf)).*(\.ttf)[^,]*,/,'') 8 .replace(/,[^,]*url(?!.*url.*(\.svg)).*(\.svg)[^;]*;/,';'); 9 };