build: Update uglifyjs for minify-build-system.
* guix/build-system/minify.scm (default-uglify-js): Update uglifyjs package used. * guix/build/minify-build-system.scm (minify): Use updated uglifyjs command name. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
d16148fcfd
commit
385c485c65
@ -44,8 +44,8 @@
|
||||
(define (default-uglify-js)
|
||||
"Return the default package to minify JavaScript source files."
|
||||
;; Lazily resolve the binding to avoid a circular dependency.
|
||||
(let ((mod (resolve-interface '(gnu packages lisp-xyz))))
|
||||
(module-ref mod 'uglify-js)))
|
||||
(let ((mod (resolve-interface '(gnu packages uglifyjs))))
|
||||
(module-ref mod 'uglifyjs)))
|
||||
|
||||
(define* (lower name
|
||||
#:key source inputs native-inputs outputs system
|
||||
|
@ -39,7 +39,7 @@
|
||||
(format #t "minifying ~a\n" file)
|
||||
(let* ((base (basename file ".js"))
|
||||
(installed (or target (string-append directory base ".min.js")))
|
||||
(minified (open-pipe* OPEN_READ "uglify-js" file)))
|
||||
(minified (open-pipe* OPEN_READ "uglifyjs" file)))
|
||||
(call-with-output-file installed
|
||||
(cut dump-port minified <>))
|
||||
#t))
|
||||
|
Loading…
Reference in New Issue
Block a user