Whoaa512 / webpack-repro

Reproduces webpack dev require.context bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproduces webpack dev require.context bug webpack/webpack#995

Steps to repro:

  1. Clone repo: git clone https://github.com/Whoaa512/webpack-repro.git
  2. Install: npm install
  3. Run the build: ./node_modules/.bin/gulp
  4. Take note of chunks included in app.bundle.js (Should be 7)
  5. In separate terminal tab create new file: npm run newfile
  6. 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
  7. Kill the build and run it again (./node_modules/.bin/gulp)
  8. Now the new file(bar.coffee) has been included in the bundle. And the hash is changed

About

Reproduces webpack dev require.context bug


Languages

Language:CoffeeScript 71.5%Language:JavaScript 25.7%Language:HTML 2.8%