Closed abustamam closed 8 years ago
I added the line there so that the chapter works better standalone. I think the Babel section has to grow into a chapter of its own eventually.
Those leanpub-start-insert
and leanpub-end-insert
lines are Leanpub specific formatting. The site actually parses those. Example. The problem is that GitHub doesn't support the syntax.
Thanks!
Oh I see. Thanks for clarifying so quickly!
I'm really liking the separation between Webpack and React! I feel like I'm finally understanding Webpack and its various configuration methods.
I ran into a tiny bug in the Advanced Techniques chapter though.
https://github.com/survivejs/webpack/blame/b57e8e4f5fe9b1e8ebf7ed5582f953e4d77a38bf/manuscript/advanced_techniques/05_configuring_react.md#L143
This line did not work:
I think this was based on an older version of the book, where
TARGET
was equal toprocess.env.npm_lifecycle_event
.So I just dug up the older copy of the book and it worked fine.
I also changed the switch case:
Less important, there are some weird lines that actually ended up making it to the book:
I don't see that syntax anywhere else, but I might be missing something.