Snapshot of rstacruz/webpack-tricks: 2.3k★, Frontend. Tips and tricks in using Webpack
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
We make a vendor entry point and load it with some libraries
CommonsChunkPlugin will remove these libraries from app.js (because it appears in 2 bundles now)
CommonsChunkPlugin also moves the Webpack runtime into vendor.js
Reference: Code splitting
Source maps (Webpack 1)
The best source maps option is cheap-module-eval-source-map. This shows original source files in Chrome/Firefox dev tools. It's faster than source-map and eval-source-map.
React will build dev tools by default. You don't need this in production. Use the EnvironmentPlugin to make these dev tools disappear. This saves you around 30kb.
plugins: [
new webpack.EnvironmentPlugin({
NODE_ENV: 'development'
})
]
Webpack 1: Be sure to invoke Webpack as env NODE_ENV=production webpack -p when building your production assets.
Webpack 2: Invoke Webpack as webpack -p when building your production assets. NODE_ENV is automatically set by Webpack.
Reference: EnvironmentPlugin documentation
Smaller Lodash
Lodash is very useful but usually we only need a small part of its full functionality. lodash-webpack-plugin can help you shrink the lodash build by replacing feature sets of modules with noop, identity, or simpler alternatives.
How active is development on rstacruz/webpack-tricks?
The most recent commit recorded on rstacruz/webpack-tricks was 4.6 years ago, based on the GitHub push timestamp. The repository has 58 forks — one of the better signals of community interest.
How many stars does rstacruz/webpack-tricks have?
rstacruz/webpack-tricks has 2.3k GitHub stars — refresh the page for the live number, or check github.com/rstacruz/webpack-tricks. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is rstacruz/webpack-tricks open source?
TopGit's metadata for rstacruz/webpack-tricks does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What else is in the Frontend space?
rstacruz/webpack-tricks is tracked by TopGit under the Frontend category, alongside 5 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is rstacruz/webpack-tricks?
rstacruz/webpack-tricks (rstacruz/webpack-tricks) is a multi-language project on GitHub. From the project's own README: Tips and tricks in using Webpack
What language is rstacruz/webpack-tricks written in?
TopGit's last sync did not record a primary language for rstacruz/webpack-tricks. Open the repository on GitHub to see the full breakdown by file extension.
Where do I read more about rstacruz/webpack-tricks?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/rstacruz/webpack-tricks is the definitive source.
Read full README in the tab above.
Is webpack-tricks worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of webpack-tricks.