survivejs / webpack-book

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

change commonConfig['entry'] to be in sync with npm run build:lib output #251

Closed adi-zz closed 7 years ago

adi-zz commented 7 years ago

In Bundling Libraries chapter, when Setting Up Webpack, the commonConfig[ 'entry' ] from webpack.lib.js and the output of the command npm run build:lib are out of sync (

entry: { demo: PATHS.lib, }

vs

lib.js 2.96 kB 0 [emitted] lib

).

I chose to edit commonConfig[ 'entry' ], so we'll have entry: { lib: PATHS.lib, }. (This will also be in sync with your paragraph from the same page where you mention dist/lib.js.)

bebraw commented 7 years ago

Makes sense. Thanks again. 👍