import { FontGenerator } from '../../types/generator' ; import { FontAssetType } from '../../types/misc' ; import { renderTemplate } from '../../utils/template' ; import { renderSrcAttribute } from '../../utils/css' ; const generator = { dependsOn : FontAssetType . SVG , generate : ( options , svg ) => renderTemplate ( options . templates . sass , { ... options , fontSrc : renderSrcAttribute ( options , svg ) } ) } ; export default generator ;