vite-svg-2-webfont
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -104,3 +104,6 @@ // src/index.ts | ||
let generatedFonts; | ||
const generate = async () => { | ||
const generate = async (updateFiles) => { | ||
if (updateFiles) { | ||
processedOptions.files = parseFiles(options); | ||
} | ||
generatedFonts = await webfontGenerator(processedOptions); | ||
@@ -123,3 +126,3 @@ }; | ||
if (!isBuild) { | ||
setupWatcher(options.context, ac.signal, generate); | ||
setupWatcher(options.context, ac.signal, () => generate(true)); | ||
} | ||
@@ -126,0 +129,0 @@ await generate(); |
{ | ||
"name": "vite-svg-2-webfont", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A vite plugin which generates a webfont out of svg icons", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21040
496