mobifyjs icon indicating copy to clipboard operation
mobifyjs copied to clipboard

Latest version of mobify.js somewhat minified?

Open zrw354 opened this issue 10 years ago • 4 comments

The latest mobify.js on Github is partially minified. Are you guys sure this is a version for human eyes? It seems that you've just decided to not use almond.js, though.

zrw354 avatar Mar 05 '14 18:03 zrw354

@zrw354 I actually never noticed that :). We moved away from Almond.js and went with Browserify. Seems like the loader they insert comes in minified. Adding to my TODO list to check if we can get that snippet unminified. Did a quick googling and couldn't figure it out right away - seems like someone has a similar complaint though: https://github.com/substack/node-browserify/issues/623

jansepar avatar Mar 05 '14 18:03 jansepar

Hi jansepar,

Thanks for the quick response.

I forked mobify/mobifyjs last week, with mobify.js being the version based on almond.js. I'd like to catch up with your latest version.

Regards, zrw354

zrw354 avatar Mar 05 '14 20:03 zrw354

Cool, feel free to rebase what's in the v2.0 branch!

jansepar avatar Mar 05 '14 21:03 jansepar

@jansepar you can provide an opts.prelude (and opts.preludePath, for sourcemaps) to browserify's API that accepts a string version of the prelude. The repo (and the package) of browser-pack includes the unminified source.

I do not know if you can provide custom options to grunt-browserify very easily, but I'll leave that to you. :sparkles:

terinjokes avatar Dec 10 '15 07:12 terinjokes