[Improvement] Support local font file (#408)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module.exports = (fontName, hash) => {
|
||||
return `@font-face {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-family: '${fontName}';
|
||||
src: url('./${fontName}-${hash}.ttf') format('truetype');
|
||||
}`;
|
||||
};
|
||||
Reference in New Issue
Block a user