Closed rosskevin closed 8 years ago
I see the readme
require("bundle?lazy&name=my-chunk!./file.js");
points to the interpolateName of loader-utils.
interpolateName
loader-utils
Is there a way to use interpolation for the named chunk by declaring the pattern in the query string (or adding a function to the config)?
@see also StackOverflow related question
This query string will grab the name under the last routes directory:
loaders: [ 'bundle?lazy&name=[1]®Exp=routes\/(.*)\/components\/.*$', 'babel' ]
I see the readme
points to the
interpolateName
ofloader-utils
.Is there a way to use interpolation for the named chunk by declaring the pattern in the query string (or adding a function to the config)?
@see also StackOverflow related question