mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
22 lines
507 B
JavaScript
22 lines
507 B
JavaScript
console.log('Build JPML files');
|
|
|
|
var jpml = require('@ionic/jpml');
|
|
|
|
|
|
jpml.generate({
|
|
include: ['dist/svg/'],
|
|
outDir: 'src/components/icon/svj/',
|
|
filter: function(path) {
|
|
return path.toLowerCase().split('.').pop() === 'svg';
|
|
},
|
|
fileName: function(path) {
|
|
return path.replace('.svg', '.svj');
|
|
},
|
|
key: function(path) {
|
|
return path.replace('.svg', '');
|
|
},
|
|
wrapper: function(content, key) {
|
|
return "loadIonicon('" + content.replace(/'/g, "\\\'") + "','" + key + "');"
|
|
}
|
|
});
|