vant/packages/icon/config/template-local.js
2018-06-13 20:36:36 +08:00

10 lines
193 B
JavaScript

module.exports = (fontName, ttf) => {
return `@font-face {
font-style: normal;
font-weight: normal;
font-family: '${fontName}';
src: url('../icon/${ttf}') format('truetype');
}
`;
};