auth0 / webtask-bundle

Module and CLI to bundle your code for use on https://webtask.io
28 stars 6 forks source link

Minify ? #5

Open darkyen opened 8 years ago

darkyen commented 8 years ago

Is there a way to minify the output bundle ?

sorenbs commented 8 years ago

Given the max size of 122 kb, minification would be really useful

Uncaught error: Request body size exceeds 122880 Error: Payload Too Large

sorenbs commented 8 years ago

For others who end up here. If you don't want to set up the tooling you can use this manual tool: https://jscompress.com/

sorenbs commented 7 years ago

Any official advice on this?

sgmeyer commented 7 years ago

This is a bit old, but the -m flag will minify.

wt-bundle -m --output ./build/webtask.js ./webtask.js

jrgleason commented 6 years ago

How does this work now that you are supposed to use wt-cli?