Closed adi-zz closed 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 (
commonConfig[ 'entry' ]
npm run build:lib
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.)
entry: { lib: PATHS.lib, }
dist/lib.js
Makes sense. Thanks again. 👍
In Bundling Libraries chapter, when Setting Up Webpack, the
commonConfig[ 'entry' ]
from webpack.lib.js and the output of the commandnpm run build:lib
are out of sync (vs
).
I chose to edit
commonConfig[ 'entry' ]
, so we'll haveentry: { lib: PATHS.lib, }
. (This will also be in sync with your paragraph from the same page where you mentiondist/lib.js
.)