app.built.js
tielur opened this issue · 1 comments
This is more of a question then an issue. I'm new to both Hapi and React but I'm curious why the app.built.js
is so large. It looks like grunt is calling browserify on the src/react_components/ directory but the app.built.js
has a lot of other stuff in it. Is this common? Is all of the extra stuff just React?
Yes, so there are a couple things. There's the entire tree (including React), and the fact that the dev version of React is being bundled. Also, IIRC, I think debug mode may be on (are you seeing sourcemaps?)
Some googling did return this:
If you want to use Browserify you can substantially reduce build size by setting the NODE_ENV=production environment variable when running Browserify (it strips out error messages and other things).
Best of luck, and if you have any major epiphanies I'd <3 to hear 'em!