Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.
This repository was 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

@dudulaopo833

Description

@dudulaopo833

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions