Open milahu opened 3 years ago
input - index.html
index.html
<link rel="stylesheet" href="/css/noto-sans/latin.css">
input - css/noto-sans/latin.css
css/noto-sans/latin.css
/* noto-sans-latin-400-normal*/ @font-face { font-family: 'Noto Sans'; src: local('Noto Sans'), local('NotoSans'), url('./files/noto-sans-latin-400-normal.woff2') format('woff2'), url('./files/noto-sans-latin-400-normal.woff') format('woff'); }
actual result
<style> /* noto-sans-latin-400-normal*/ @font-face { font-family: 'Noto Sans'; src: local('Noto Sans'), local('NotoSans'), url("css/noto-sans/files/noto-sans-latin-400-normal.woff2") format('woff2'), url("css/noto-sans/files/noto-sans-latin-400-normal.woff") format('woff'); } </style>
expected result (as produced by the good-old inliner)
<style> @font-face{ font-family:'Noto Sans';font-style:normal;font-display:swap;font-weight:400;src:local('Noto Sans'), local('NotoSans'), url('data:application/font-woff2;base64,d09GMgABAAAAAD64ABEAAAAAd5AAAD5YAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmobjkQcMgZgAIMSCIF+CY80ERAKgbQIgZoaC4NWAAE2AiQDhygEIAWDGAcgDIQaG6FnNWybNp27VUUrNARqJMJGClJwFMHGAQSFLUv+/48JMsbth9tXAUelosS0xmgLlpETplnhYA8FURBlp46.....
the file css/noto-sans/files/noto-sans-latin-400-normal.woff2 does exist ; ) its from the npm package @fontsource/noto-sans
css/noto-sans/files/noto-sans-latin-400-normal.woff2
@fontsource/noto-sans
inliner found the file too, maybe that file type is not yet supported here?
yeah there is no "recursive" mode available. I would be happy to take a PR to enable that in some way
input -
index.html
input -
css/noto-sans/latin.css
actual result
expected result (as produced by the good-old inliner)
<style> @font-face{ font-family:'Noto Sans';font-style:normal;font-display:swap;font-weight:400;src:local('Noto Sans'), local('NotoSans'), url('data:application/font-woff2;base64,d09GMgABAAAAAD64ABEAAAAAd5AAAD5YAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmobjkQcMgZgAIMSCIF+CY80ERAKgbQIgZoaC4NWAAE2AiQDhygEIAWDGAcgDIQaG6FnNWybNp27VUUrNARqJMJGClJwFMHGAQSFLUv+/48JMsbth9tXAUelosS0xmgLlpETplnhYA8FURBlp46.....
the file
css/noto-sans/files/noto-sans-latin-400-normal.woff2
does exist ; ) its from the npm package@fontsource/noto-sans
inliner found the file too, maybe that file type is not yet supported here?