[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#996965: CSS help needed for r-cran-bslib (Was: shiny-server in debian)



On Wed, Apr 27, 2022 at 03:22:59PM +0200, Andreas Tille wrote:
> Thanks a lot for your help on this (deserves another $drink from me ;-) )

This count is increasing with each passing day :)

> Those three failing tests are patched out now.

Fine
 
> > BTW please repack all the minified files and minify them during the build using terser[1] or something similar
> 
> I tried to repack[2] but I get
> 
> r-cran-bslib/debian/missing_source/bs5(master) $ terser --compress --mangle -- bootstrap.bundle.js
> 
> /usr/share/nodejs/terser/bin/terser:153
> if (~opts.rawArgs.indexOf("--rename")) {
                   ^

Um, weird.
It works fine for me (checked on a clean system in a chroot), are you using terser provided by "uglifyjs.terser"?
Can you try running

$ terser --compress --mangle -o bootstrap.bundle.min.js bootstrap.bundle.js
$ ls
bootstrap.bundle.js  bootstrap.bundle.min.js  get

Alternatively, you can also use uglifyjs[3]

> > [1]: https://tracker.debian.org/pkg/node-terser
> [2] https://salsa.debian.org/r-pkg-team/r-cran-bslib/-/tree/master/debian/missing_source/bs5
[3]: https://tracker.debian.org/pkg/uglifyjs

Regards
Nilesh

Attachment: signature.asc
Description: PGP signature


Reply to: