Compared to the previous release this is a conservative release. There are certain bug fixes and content improvements, but no new chapters. The focus was on pushing the current content further based on feedback.
I am very happy that the book split has been completed now. That was a big undertaking, but well worth it as it's easier to move forward now.
Overview of the Situation#
Even though it's a better book now, there are still tasks to be done. I don't have a clear roadmap for 2.0 yet. If you have specific ideas on what you would like to see in the book, open an issue. That will give me a better idea on what kind of content to develop for the book.
I've been thinking of writing a small tool that would generate a Git repository based on the book code. This kind of automation would help a lot, and even though it's not trivial to achieve, it could be worth it as it would save time and effort. In addition, this would allow me to lint the book code somewhat effectively so I'll likely prioritize the development of this tool.
Book Improvements -
In total 53 commits went to the book since the last release. You can find the important changes below. See GitHub for all changes. Remember especially the "Files changed" tab as it gives you a good overview of what's happening with the book.
Special thanks to David Lee, Steve Schwartz, and Jesús Rodríguez Rodríguez for their helpful contributions and feedback! It has been great to discuss about the topic at the book chat. That helps to shape the future of the content.
- Added a section for Brunch. It's an interesting alternative to webpack and worth covering. There's even a HMR runtime available for it.
Developing with Webpack#
- Explained Webpack output in detail.
Automatic Browser Refresh#
- Linked the
css?modulesidea to the Loader Definitions chapter.
- Fixed generated class. Instead of
styles.locals.redButtonit should be just
Building with Webpack#
Setting Environment Variables#
- Explained the basic idea of
- Reworked and explained the split idea in greater detail to get the point.
Minifying the Build#
- Reworked the section about UglifyJS specific options. It should be clearer what's going on now.
- Mentioned uglify-loader as an alternative.
Analyzing Build Statistics#
- Reworked and explained the value of analysis in greater detail. Now there are also more tools listed.
query.prefixand replaced it with
name: 'font/[hash].[ext]'given the latter form has been deprecated.
- Mentioned eslint-plugin-import. It's able to lint your ES6 imports effectively.
- Mentioned lockdown as an alternative to
- Added an image showing the idea and mentioned
- Added more context to
I'll do a pass on the React book next and then continue plowing through my TODO list for this one. There are always topics to cover and you can affect the direction of the book.
Even though this is another small release, it's a step ahead. Keep up providing feedback and I'll integrate as well as I can.
If you want to support the development of the book, pick up a copy at Leanpub. A part of the income (around ~30%) goes to Tobias Koppers, the author of webpack. This is my way of supporting his work given mine builds on top of his.