Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

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

Open
dudulaopo833 opened this issue Sep 29, 2017 · 1 comment

Comments

@dudulaopo833
Copy link

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';
  1. After build, I am access my app with localhost:8080 in local server(http-server).
  2. 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
Copy link
Member

@dudulaopo833 can you provide minimum reproducible test repo?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants