-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Precompile for production #263
Comments
Please see: In terms of the size of the file, I'm not surprised that it's big, depending on what libraries are included. It should be cached in the browser, and TurboLinks will allow loading it once. We also plan to use:
CC: @alexfedoseev @robwise |
Hi, thanks for your quick support. Unfortunately this is not very satisfying as i already removed lodash completely. I will definitely have a look into tree shaking. I think its worth shaving off every kB we can. After posting this issue i found most of my thoughts summed up in this issue - quite helpful: #206 |
Hi @SqueezedLight, please let us know what you find! |
Hi guys,
first of all thanks for your great work!
Currently i'm having a hard time precompiling assets for production. As far as i understand, webpack builds the client side code to
/app/assets/javascripts/generated
where sprockets picks it up. If i runrake assets:precompile
on a freshreact_on_rails
project the resulting application.js in/public/assets
has nearly 2Mb?! What am i missing? Unfortunately i couldn't find documentation that covers this topic.Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: