[Pkg-javascript-devel] Problems to recreate minimized JS in r-cran-jsonld

Andreas Tille andreas at an3as.eu
Thu May 10 10:01:26 BST 2018


Hi,

On Thu, May 10, 2018 at 01:31:56PM +0500, Pirate Praveen wrote:
> 
> You'll need to update webpack.config.js with system path for it to find apt
> installed modules.

I naively tried

diff --git a/webpack.config.js b/webpack.config.js
index 7ce5c6e..87f7559 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -20,11 +20,11 @@ const outputs = [
     entry: [
       // 'babel-polyfill' is very large, list features explicitly
       'regenerator-runtime/runtime',
-      'core-js/fn/array/includes',
-      'core-js/fn/object/assign',
-      'core-js/fn/promise',
-      'core-js/fn/string/starts-with',
-      'core-js/fn/symbol',
+      '/usr/lib/nodejs/core-js/fn/array/includes',
+      '/usr/lib/nodejs/core-js/fn/object/assign',
+      '/usr/lib/nodejs/core-js/fn/promise',
+      '/usr/lib/nodejs/core-js/fn/string/starts-with',
+      '/usr/lib/nodejs/core-js/fn/symbol',
       // main lib
       './lib/index.js'
     ],

which did not help.
 
> > jsonld.js does not work.  The file size of this uncompressed file is way
> > smaller than the minimazion result and doese not work together with the
> > R code.  Thus I really need to undergo the process to create the
> > minimized JS.
> 
> https://wiki.debian.org/Javascript/#Using_build_tools_like_grunt has
> examples.

Is there any actual package example?  The anchor does not exist (any
more) on that wiki page (which should be updated to Salsa anyway ;-) ).

Kind regards

     Andreas.

-- 
http://fam-tille.de



More information about the Pkg-javascript-devel mailing list