1
0
mirror of https://github.com/coreui/coreui-icons.git synced 2025-08-30 11:39:59 +02:00

refactor: change js filenames, optimize js filesizes

This commit is contained in:
woothu
2019-11-15 09:57:47 +01:00
parent 9c925524fa
commit 7db9a7755e
6123 changed files with 13749 additions and 13749 deletions

View File

@@ -34,7 +34,8 @@ dirnames.forEach(setName => {
iconData.push(dimensions)
}
const computedContent = content.replace(/(<svg([^>]+)>)|(<\/svg>)/ig, '')
.replace(/\n/g, '').replace(/"/g, '\'')
.replace(/(<title([^]+)title>)/ig, '')
.replace(/\n/g, '').replace(/\r/g, '').replace(/"/g, '\'')
.replace('<!-- Generated by IcoMoon.io -->', '')
iconData.push(computedContent)

View File

@@ -1,8 +1,7 @@
const fs = require('fs')
const dirnames = process.mainModule.filename.includes('pro') ?
['solid', 'linear'] :
['flag']
// ['free']
['flag', 'brand', 'free']
const prefixes = {
brand: 'cib-',