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

The trouble of 'require("bundle-loader?lazy&name=my-chunk!./file.js");' #49

Open
Molin123 opened this issue Apr 20, 2017 · 1 comment
Open

Comments

@Molin123
Copy link

Molin123 commented Apr 20, 2017

If I use the code below , it won't work ! It is just like that I didn't use bundle-loader.

import file from "bundle-loader?lazy&name=my-chunk!./file.js";

But if I modify my code below ,it work !

import file from "bundle-loader?lazy&name=my-chunk-[name]!./file.js";

The webpack.config.js in my project is:

output: {
        path: path.resolve(__dirname, './output'),
        filename: '[name].[chunkhash:8].bundle.js',
        chunkFilename: '[name]-[id].[chunkhash:8].bundle.js',
    },

BTW:The version I used is react^15.4.2 & react-router-dom^4.0.0 & bundle-loader^6.4.1

@haf
Copy link

haf commented Jun 29, 2017

I'm also interested in hearing about this.

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

No branches or pull requests

2 participants