Subject: bug#35923: closed (Re: bug#35923: Minification of Javascript for r-shiny fails)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 27 May 2019 20:13:02 +0000

Your bug report

#35923: Minification of Javascript for r-shiny fails

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
35923: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35923
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#35923: Minification of Javascript for r-shiny fails
From: Ricardo Wurmus <[email-masked]>
To: Roel Janssen <[email-masked]>
Cc: [email-masked]
Date: Mon, 27 May 2019 22:11:03 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Roel,

> It seems that the r-shiny package is not functioning correctly due to empty minified Javascript
> files.
>
> This is empty:
> $ ls -lh ./site-library/shiny/www/shared/shiny.min.js
> -r--r--r-- 6658 root root 0 Jan  1  1970 ./site-library/shiny/www/shared/shiny.min.js

Oh.  This is now fixed with commit 8916034a34.
Problem was that uglify-js wasn’t available during minification.  It
would have been nicer had the build phase failed.

-- 
Ricardo

Subject: Minification of Javascript for r-shiny fails
From: Roel Janssen <[email-masked]>
To: [email-masked]
Date: Mon, 27 May 2019 12:24:22 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Dear guix,

It seems that the r-shiny package is not functioning correctly due to empty minified Javascript
files.

This is empty:
$ ls -lh ./site-library/shiny/www/shared/shiny.min.js
-r--r--r-- 6658 root root 0 Jan  1  1970 ./site-library/shiny/www/shared/shiny.min.js

While its unminified equivalent is definitely not empty:
$ ls -lh ./site-library/shiny/www/shared/shiny.js
-r--r--r-- 3 root root 229K Jan  1  1970 ./site-library/shiny/www/shared/shiny.js

Symlinking the unminified files to the minified files solves the problem.  But for production use
I'd like to get the minification to work.

Is it a trivial thing to fix for someone more familiar with the minify-build-system?

Kind regards,
Roel Janssen