webpack-contrib / bundle-loader

Bundle Loader
MIT License
658 stars 59 forks source link

Why the chunck cannot load while I am browser local run resource which webpack builded with bundle-loader #60

Open dudulaopo833 opened 6 years ago

dudulaopo833 commented 6 years ago

Question: Can bundle-loader support local browser to load the chunk?

  1. I am using webpack and bundle-loader to build my app. And home.js will be use in app.js
    import loadHome from 'bundle-loader?lazy!../src/pages/Home';
  2. After build, I am access my app with localhost:8080 in local server(http-server).
  3. But I found that when I just drag the index.html to open in chrome browser, It cannot load the chunck(home.js) which use bundle-loader to build. You can see that I already load app.js, but app.js should load the home.js! But actually, it just load the app.js without loading home.js. And I cannot get any error or warning in chrome console panel! capture
alexander-akait commented 6 years ago

@dudulaopo833 can you provide minimum reproducible test repo?