Conversation
|
@melizeche thanks! I haven't tested it yet. But you could try using import shutil
print(shutil.which("yuglify"))
> '/Users/jorge/.nvm/versions/node/v8.9.1/bin/yuglify'I'll check your changes soon. I also wonder if this tool does the "translating" part (ES6+ => ES5). |
|
it's a minifier but we don't need translate to ES5, ES6 at least const is supported since android 2.2 |
|
@juanhuttemann in theory it should work fine with env as |
fix to work on any platform import shutil
...
TERSER_BINARY = shutil.which("terser") |
|
@melizeche it works like a charm, though I used @juanhuttemann fix. I guess if you update the PR with his suggestion is good to go 👌 |
just a draft, @jorgeramirez @juanhuttemann can you guys tests if this approach is valid for #261 ?
reqs:
npm install -g terserref:
https://django-pipeline.readthedocs.io/en/latest/compressors.html#example