summaryrefslogtreecommitdiff
path: root/client/simple/tools/plg.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/simple/tools/plg.js')
-rw-r--r--client/simple/tools/plg.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/client/simple/tools/plg.js b/client/simple/tools/plg.js
index 16ec268b6..6cd4d491d 100644
--- a/client/simple/tools/plg.js
+++ b/client/simple/tools/plg.js
@@ -8,8 +8,7 @@
* needed.
*/
-import { svg2png } from "./img.js";
-import { svg2svg } from "./img.js";
+import { svg2png, svg2svg } from "./img.js";
/**
* Vite plugin to convert a list of SVG files to PNG.
@@ -18,9 +17,11 @@ import { svg2svg } from "./img.js";
*/
function plg_svg2png(items) {
return {
- name: 'searxng-simple-svg2png',
- apply: 'build', // or 'serve'
- async writeBundle() { svg2png(items); },
+ name: "searxng-simple-svg2png",
+ apply: "build", // or 'serve'
+ async writeBundle() {
+ svg2png(items);
+ }
};
}
@@ -32,9 +33,11 @@ function plg_svg2png(items) {
*/
function plg_svg2svg(svgo_opts, items) {
return {
- name: 'searxng-simple-svg2png',
- apply: 'build', // or 'serve'
- async writeBundle() { svg2svg(items, svgo_opts); },
+ name: "searxng-simple-svg2png",
+ apply: "build", // or 'serve'
+ async writeBundle() {
+ svg2svg(items, svgo_opts);
+ }
};
}