mirror of
https://github.com/twitter/twemoji.git
synced 2024-12-25 06:14:31 +00:00
Use the svg/ directory rather than ai/ to generate the emoji list for previews
This commit is contained in:
parent
5240446dce
commit
7fc9e09b42
@ -19,13 +19,13 @@ function distFile(...which) {
|
||||
return path.join(__dirname, '..', 'dist', ...which);
|
||||
}
|
||||
|
||||
fs.readdir(file('assets/ai'), function (err, files) {
|
||||
fs.readdir(file('assets/svg'), function (err, files) {
|
||||
var page = fs.readFileSync(file('src/templates/preview.html'))
|
||||
.toString()
|
||||
.replace(
|
||||
'{{emoji-list}}',
|
||||
'<li>' + files.map(function (filename) {
|
||||
var codepoints = filename.replace('.ai', '').split('-');
|
||||
var codepoints = filename.replace('.svg', '').split('-');
|
||||
var emoji = codepoints.map(function(codepoint) {
|
||||
return Utils.fromCodePoint(codepoint);
|
||||
}).join('');
|
||||
|
Loading…
Reference in New Issue
Block a user