We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5beb7fd commit 4eb6da3Copy full SHA for 4eb6da3
tools/uglifyjs.R
@@ -2,8 +2,8 @@ uglifyjs = function(file, args = NULL) {
2
if (Sys.which('uglifyjs') == '') return(1)
3
owd = setwd(dirname(file)); on.exit(setwd(owd), add = TRUE)
4
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))
+ out = shQuote(xfun::with_ext(file, '.min.js'))
+ system2('uglifyjs', c(shQuote(file), '--source-map', '-o', out, args))
7
}
8
9
xfun::in_dir('inst/resources/gitbook/js', uglifyjs('app.js'))
0 commit comments