-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to profile this #1042
Comments
Have you tried |
Does that differ from what |
So after trying it, seems to work. But I'm not sure why our build times increased so much:
Major offenders seem to be the SCSS files, but unless they are compiled multiple times, it shouldn't cause so much increase.
I don't actually need expensive source maps for production, and that setting got lost in our porting, so I'll bench again after fixing them and report back. |
I am also seeing high compile times (but not as high as yours), even in dev with HMR, and I also suspect the SCSS pipeline. I havent got time to investigate yet but I am interested in your findings. |
I am suspecting it to be sourcemaps. @renchap Are you using master or 3.0.2? |
I am using 3.0.2, and I forced source maps to Also this only occurs for my main
|
I reorganized my stylesheets and I have found that I am using the base Webpacker Adding Do you have any ideas on what is going on? Also as a side note, |
@renchap Interesting. Could you please try removing resolve url loader and see what happens? |
It's one of the loaders in |
environment.loaders.get('style').use.splice(3, 1) Much better, 0.8s for an in-memory rebuild 🚀 The asset filenames are still like Any idea about what is causing this? I dont know |
It's actually file loader, so if you remove path from the name or remove context: https://github.com/rails/webpacker/blob/master/package/rules/file.js#L10 since context is source directory anything outside of it is resolved as relative path. |
So, it seems |
If you want me to test some things, feel free to ask! |
@renchap Could you please try out master? |
Is there any way to use
--progress --profile
with this gem? Our production build takes about 10 minutes and I'd like to know what it spends its time on.The text was updated successfully, but these errors were encountered: