mobify / mobifyjs

Mobify.js was a JavaScript framework for optimizing sites for mobile. It is no longer actively maintained.
https://www.mobify.com/
Other
644 stars 83 forks source link

Latest version of mobify.js somewhat minified? #254

Open zrw354 opened 10 years ago

zrw354 commented 10 years ago

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.

jansepar commented 10 years ago

@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

zrw354 commented 10 years ago

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

jansepar commented 10 years ago

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

terinjokes commented 8 years ago

@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: