forked from gitkraken/vscode-gitlens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.fantasticonrc.js
37 lines (35 loc) · 932 Bytes
/
.fantasticonrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//@ts-check
/** @type {import('@twbs/fantasticon').RunnerOptions} */
const config = {
name: 'glicons',
prefix: 'glicon',
codepoints: require('./images/icons/template/mapping.json'),
inputDir: './images/icons',
outputDir: './dist',
fontsUrl: '#{root}/dist',
// @ts-ignore
fontTypes: ['woff2'],
normalize: true,
// @ts-ignore
assetTypes: ['html', 'scss', 'json', 'sass', 'css'],
templates: {
html: './images/icons/template/icons-contribution.hbs',
scss: './images/icons/template/styles.hbs',
sass: './images/icons/template/sass-map.hbs',
css: './images/icons/template/component-map.hbs',
},
formatOptions: {
json: {
indent: 2,
},
},
pathOptions: {
woff2: './dist/glicons.woff2',
scss: './dist/glicons.scss',
sass: './dist/glicons-map.scss',
html: './dist/icons-contribution.json',
json: './images/icons/template/mapping.json',
css: './dist/glicons-map.ts',
},
};
module.exports = config;