Reproduces webpack dev require.context bug webpack/webpack#995
Steps to repro:
- Clone repo:
git clone https://github.com/Whoaa512/webpack-repro.git
- Install:
npm install
- Run the build:
./node_modules/.bin/gulp
- Take note of chunks included in
app.bundle.js
(Should be 7) - In separate terminal tab create new file:
npm run newfile
- Notice that webpack rebuilds, but the chunk count does not increase and the new file is not in the bundle. The hash is also the same
- Kill the build and run it again (
./node_modules/.bin/gulp
) - Now the new file(
bar.coffee
) has been included in the bundle. And the hash is changed