You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
750 B

  1. //@ts-check
  2. /** @type {import('@twbs/fantasticon').RunnerOptions} */
  3. const config = {
  4. name: 'glicons',
  5. prefix: 'glicon',
  6. codepoints: require('./images/icons/template/mapping.json'),
  7. inputDir: './images/icons',
  8. outputDir: './dist',
  9. fontsUrl: '#{root}/dist',
  10. // @ts-ignore
  11. fontTypes: ['woff2'],
  12. normalize: true,
  13. // @ts-ignore
  14. assetTypes: ['html', 'scss', 'json'],
  15. templates: {
  16. html: './images/icons/template/icons-contribution.hbs',
  17. scss: './images/icons/template/styles.hbs',
  18. },
  19. formatOptions: {
  20. json: {
  21. indent: 2,
  22. },
  23. },
  24. pathOptions: {
  25. woff2: './dist/glicons.woff2',
  26. scss: './dist/glicons.scss',
  27. html: './dist/icons-contribution.json',
  28. json: './images/icons/template/mapping.json',
  29. },
  30. };
  31. module.exports = config;