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:
@@ -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)
|
||||
|
||||
|
@@ -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-',
|
||||
|
Reference in New Issue
Block a user