vant/packages/icon/config/template-local.js
2018-06-08 10:43:46 +08:00

9 lines
192 B
JavaScript

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