Quoting Pirate Praveen (2020-09-26 13:12:21) > On Sat, Sep 26, 2020 at 13:05, Felix Natter <[email protected]> wrote: > > Shall I build libjs-twemoji? If so, how to I build the > > "twemoji.min.js"? > > Do I take the one that --with nodejs builds for node (sorry, I don't > > know much about node)? > > You can run uglifyjs.terser command to create twemoji.min.js either in > debian/rules under override_dh_auto_build or create debian/nodejs/build > and add > > uglifyjs.terser -o twemoji.min.js twemoji.js
I recommend to try install package uglify-js and see if this works: uglifyjs -o twemoji.min.js twemoji.js If it does, then I recommend to use that instead of terser. Reason is that uglify-js has much fewer build-dependencies, and therefore reduces the risk of your package getting affected by bugs or migration delays elsewhere in the nodejs ecosystem. Generally you only need terser if your code is written in too modern flavor for JavaScript. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature
-- Pkg-javascript-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
