Skip to content
Snippets Groups Projects
Unverified Commit d8c71fd9 authored by Efraim Flashner's avatar Efraim Flashner
Browse files

gnu: js-filesaver: Also install unminified version.

* gnu/packages/javascript.scm (js-filesaver)[arguments]: Add phase to
install unminified javascript file.
parent efaeb84c
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,12 @@ (define-public js-filesaver
(lambda _
(substitute* "src/FileSaver.js"
(("export ") ""))
#t))
(add-after 'install 'install-unminified-version
(lambda* (#:key outputs #:allow-other-keys)
(install-file "src/FileSaver.js"
(string-append (assoc-ref outputs "out")
"/share/javascript"))
#t)))))
(home-page
"https://eligrey.com/blog/saving-generated-files-on-the-client-side/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment