mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
♻️ Remove all usage of graalvm js runtime
And replace it with a commandline call to nodejs for execute a custom svgo based command line script.
This commit is contained in:
parent
15b33488c6
commit
cc6e071f48
17 changed files with 576 additions and 40723 deletions
|
@ -6,11 +6,11 @@
|
|||
|
||||
(ns app.renderer.svg
|
||||
(:require
|
||||
["svgo" :as svgo]
|
||||
["xml-js" :as xml]
|
||||
[app.browser :as bw]
|
||||
[app.common.data :as d]
|
||||
[app.common.logging :as l]
|
||||
[app.common.svg :as svg]
|
||||
[app.common.uri :as u]
|
||||
[app.config :as cf]
|
||||
[app.util.mime :as mime]
|
||||
|
@ -319,7 +319,7 @@
|
|||
result (str/replace result " " " ")
|
||||
|
||||
result (if (contains? cf/flags :exporter-svgo)
|
||||
(svg/optimize result)
|
||||
(svgo/optimize result svgo/defaultOptions)
|
||||
result)]
|
||||
|
||||
;; (println "------- ORIGIN:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue