Skip to content

Commit 4eb6da3

Browse files
committed
the usage of --source-map with uglifyjs seems to have changed
1 parent 5beb7fd commit 4eb6da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/uglifyjs.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ uglifyjs = function(file, args = NULL) {
22
if (Sys.which('uglifyjs') == '') return(1)
33
owd = setwd(dirname(file)); on.exit(setwd(owd), add = TRUE)
44
file = basename(file)
5-
out = shQuote(xfun::with_ext(file, c('.min.js', '.min.map')))
6-
system2('uglifyjs', c(shQuote(file), '-o', out[1], '--source-map', out[2], args))
5+
out = shQuote(xfun::with_ext(file, '.min.js'))
6+
system2('uglifyjs', c(shQuote(file), '--source-map', '-o', out, args))
77
}
88

99
xfun::in_dir('inst/resources/gitbook/js', uglifyjs('app.js'))

0 commit comments

Comments
 (0)