Published by 0xb4lint almost 2 years ago
Allow -
and _
in google font files (#19 #20) - thanks @nstringham
Published by 0xb4lint almost 2 years ago
Added support for Vite 4.
Published by 0xb4lint almost 2 years ago
indexHtmlPath
fix by changing replace regex to ^/
(fixes #18)
Published by 0xb4lint about 2 years ago
Added Bunny Fonts support.
Published by 0xb4lint about 2 years ago
@vite('webfonts.css')
) (#15)transformIndexHtml
to generateBundle
(#15)injectAsStyleTag: false
), if transformIndexHtml
hook is not firedbuild.minify
for minifyCss
option/@webfonts/
as assets directory with dev serverPublished by 0xb4lint about 2 years ago
Moved clean-css
from devDependencies
to dependencies
Published by 0xb4lint about 2 years ago
Added minifyCss
option, default: true
.
Published by 0xb4lint about 2 years ago
Package type fix (#16)
Published by 0xb4lint about 2 years ago
Support for relative URLs (#17)
Published by 0xb4lint about 2 years ago
Fix dev server font download issue (#12)
Published by 0xb4lint about 2 years ago
Added multiple aliases for much diverse usage:
viteWebfontDownload
as default
viteWebfontDownload
webfontDl
webfontDownload
viteWebfontDl
ViteWebfontDownload
Published by 0xb4lint about 2 years ago
Published by 0xb4lint about 2 years ago
Added injectAsStyleTag
option (default: true
).
With this option the webfont CSS will be injected as an embedded CSS (<style>
tag), saving one HTTP request (also fixes #9).
(By using vite as dev server the plugin will use external CSS, downloading fonts JIT, as before)
Published by 0xb4lint about 2 years ago
Published by 0xb4lint over 2 years ago
Published by 0xb4lint over 2 years ago
Options
: pass options object as parameter to plugin (#4)
async
: prevent the usage of inline event handlers that can cause Content Security Policy issues (#3, #4)Published by 0xb4lint over 2 years ago
Published by 0xb4lint over 2 years ago
Published by 0xb4lint over 2 years ago
string
and string[]
parameter for ViteWebfontDownload()
tsup
for build