Comments (13)
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:
- happypack, loaders applied in a multi cpu way
- DLL plugin, split your code into moving and non moving parts
- babel-loader cacheDirectory: true
- only apply uglifyjs when NODE_ENV=production
- only generate hash files when NODE_ENV=production
- use fast source map solutions in dev (tradeoff), https://webpack.js.org/configuration/devtool/
- http://www.slideshare.net/trueter/how-to-make-your-webpack-builds-10x-faster
Happy perf! :)
from webpack.js.org.
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?
from webpack.js.org.
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.
from webpack.js.org.
Great ideas and topics to study. Thanks!
from webpack.js.org.
@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?
from webpack.js.org.
@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.
from webpack.js.org.
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!
from webpack.js.org.
@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?
from webpack.js.org.
@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!
from webpack.js.org.
@skipjack I have one chapter on the topic.
from webpack.js.org.
Ok great, I added the Help Wanted
tag... hopefully someone sees it and has time to pick this up!
from webpack.js.org.
(if anyone starts this, please put a comment as I might do it "at some point")
from webpack.js.org.
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.
from webpack.js.org.
Related Issues (20)
- Use composite action for webpack persistent caching
- Bug: Broken Link to CommonJS Specification HOT 3
- Documentation change for clarification in asset management HOT 1
- Document webpack change: feat: support for un-managed snapshot path
- Document webpack change: add node-module option for node.__file/dirname
- Document webpack change: feat: move css exportsOnly to css generator options
- Document webpack change: fix: `Server` and `Dirent` types HOT 1
- webpack breaking issue HOT 1
- splitChunks maxSize/minSize/maxRequest priority HOT 1
- Document webpack change: feat: add warning for asyncModule
- Why `optimization.removeAvailableModules` is default to `false`?
- Update webpack-dev-server documentation HOT 1
- Document webpack change: feat: support css local ident name HOT 1
- Document webpack change: fix: use LZW to compress css head meta
- Document webpack change: fix: resolve's plugins types
- Document webpack change: feat: allow to customize the stage of BannerPlugin
- meta[name=theme-color]' is not supported by Firefox, Firefox for Android.
- Document webpack change: feat(css): allow to use default and named export
- > It is already implemented, `webpack-cli init`, soon we will implement more templates HOT 1
- Document webpack change: feat: support `node:` prefix for Node.js core modules in runtime code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack.js.org.