G
G
Gluck Virtualen2015-09-09 10:10:02
Data compression
Gluck Virtualen, 2015-09-09 10:10:02

How to obfuscate/compress javascript on the fly?

CMS Prestashop in php, Smarty templating engine.
For Smarty, there is a smarty_outputfilter_trimwhitespace plugin, it compresses HTML, but does not touch Javascript.
I would like to do the same for JS, but there was no direct solution. Advise?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-12-08
Semenov

Yes, it seems to compress:
If the scripts are connected separately, then just use the compressed version, for example, I use netbeans and the plugin plugins.netbeans.org/plugin/49666/js-css-minify-co...

A
arthur_k, 2015-09-09
@arthur_k

Have you tried Grunt/Gulp?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question