survivejs / webpack-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/webpack/
2.42k stars 319 forks source link

Optimizing - useSourceMap: true passed to minifyJavaScript #266

Closed jasonreed7 closed 7 years ago

jasonreed7 commented 7 years ago

Hi, I'm going through the book and noticed that in the code for webpack.config.js in optimizing- minifying css, {useSourceMap: true} is passed to parts.minifyJavaScript, and is not in the minifying javascript section. I saw this sentence in the minifying javascript section as well- "The plugin exposes more functionality, but having the possibility of toggling source maps is enough." so I wonder if it was meant to be included. Thanks for the great book!

bebraw commented 7 years ago

Thanks, good call. I'll alter that a bit.