fix: resolve preload href warnings
This commit is contained in:
parent
7a26fc3a9a
commit
aa77e9bfb9
3 changed files with 10 additions and 7 deletions
|
@ -1,3 +1,4 @@
|
|||
const path = require("path").posix;
|
||||
const slugify = require("slugify");
|
||||
|
||||
const slugifyString = (string) => {
|
||||
|
@ -6,6 +7,9 @@ const slugifyString = (string) => {
|
|||
});
|
||||
};
|
||||
|
||||
const getFontUrl = (src) => path.join("/assets/fonts", src);
|
||||
|
||||
module.exports = {
|
||||
getFontUrl,
|
||||
slugifyString,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue