Skip to content
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

Guides - Improving Build Performance #16

Closed
bebraw opened this issue Jun 29, 2016 · 13 comments
Closed

Guides - Improving Build Performance #16

bebraw opened this issue Jun 29, 2016 · 13 comments

Comments

@bebraw
Copy link
Contributor

bebraw commented Jun 29, 2016

Stub.

Feel free to comment here if you have ideas on what this guide should cover. Link to potential resources too.

@yuridevx
Copy link

yuridevx commented Jul 14, 2016

Brunch, for example, claims that they use caching and process only those files that were not changed. In addition to that I know that gulp if configured properly will process only changed files rather then reprocess all of the files in a glob pattern. When I've read webpack documentation I had no idea on how could I structure my build so it will be fast. Does it somehow optimize one .less file that includes all smaller once? etc...
In other words what are the best practices for fast builds in complex setups like typescript->es6->traceur-> webpack2 for tree-shacking. Or less->css->styles (with possible hot reload?)
Is there anything on this topic?

@yuridevx
Copy link

yuridevx commented Jul 14, 2016

And what about different linting tools in the loader chain? How does that affect overall build/rebuild performance.
Is it better to not include them there at all?
Some time measurements would be cool in performance docs I think.

@bebraw
Copy link
Contributor Author

bebraw commented Jul 14, 2016

Great ideas and topics to study. Thanks!

@yuridevx
Copy link

@bebraw I'm looking forward to become an open source participant. I would like to contribute perhaps I could do some kind of investigation and write about it.
The challenge is I'm new to the open source world as well as I'm new to the English documentation writing (not native speaker). Is there any way I might be helpful? If yes then could you give me advice on how to start with webpack docs?

@bebraw
Copy link
Contributor Author

bebraw commented Jul 14, 2016

@yuridevx Language won't be an issue as long as the content is solid and well researched. If you can comment around at the issues and help to craft outlines, that would help quite a bit. We'll be developing the content based on this work.

I hope to make another, more focused blog post in two weeks after the direction is clearer and there's a site prototype to show.

@bebraw bebraw changed the title Support - Build Performance How to - Improve build performance Jul 24, 2016
@bebraw bebraw added the Guides label Jul 24, 2016
@bebraw
Copy link
Contributor Author

bebraw commented Jul 24, 2016

To quote @mover96 from #46.

Here is a great write up on a lot of the features of the DLL Plugin (I cannot figure out how to anchor to specific posts on bountysource, but it's near the bottom)

https://www.bountysource.com/issues/28615391-webpack-incremental-builds-are-slow

The biggest point for me is that it cannot be used with CommonChunksPlugin, but there is a lot of good information in the post as well!

Disclaimer: This is my first time submitting to webpack.io, let me know if there are certain conventions I should be following!

@vvo
Copy link
Contributor

vvo commented Feb 16, 2017

State:
The stub link you gave is no more working.
The current guide on performance is full of TODOS.

Some more info:

It seems in the webpack community people are using a mix of:

Happy perf! :)

@skipjack skipjack changed the title How to - Improve build performance Guides - Improving Build Performance Apr 29, 2017
@skipjack
Copy link
Collaborator

@vvo good catch -- I updated the link in that comment. By any chance would you be interested in taking a stab at completing that guide?

@skipjack
Copy link
Collaborator

@bebraw those links in @vvo's comment and the slideshare are a good start... do you have anything on SurviveJS already that deals with build performance? Maybe between that and the other information here we'd have a good start. #1337 removes the current stub as it's still all TODOs and makes our current review a bit easier but there's a few ideas there as well (if you view the history).

I'm not familiar enough with these optimizations to pick this up myself atm, so it would be great if someone else could dig into this!

@bebraw
Copy link
Contributor Author

bebraw commented Jun 26, 2017

@skipjack I have one chapter on the topic.

@skipjack
Copy link
Collaborator

Ok great, I added the Help Wanted tag... hopefully someone sees it and has time to pick this up!

@vvo
Copy link
Contributor

vvo commented Jun 27, 2017

(if anyone starts this, please put a comment as I might do it "at some point")

@skipjack
Copy link
Collaborator

Closing thanks to @sokra with #1506 merged! 🎉 🎉

@vvo sorry I don't think he noticed this comment but please feel free to submit any follow up PRs if there's more content you think can be added or things that could be elaborated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants