You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be open to a PR that allows users to specify the name (prefix) of an entry? I'm happy to do the work, just want to make sure it would be accepted if I did. It would look something like:
// config-overrides.jsconstmultipleEntry=require('react-app-rewire-multiple-entry')([{name: 'landing',// <-- new property that would cause a filename of landing.[contenthash].chunk.jsentry: 'src/entry/landing.js',template: 'public/landing.html',outPath: '/landing.html'}]);module.exports={webpack: function(config,env){multipleEntry.addMultiEntry(config);returnconfig;}};
In essence the change would be in the return statement of getValidSettings:
return{name: entry.name||formatName(entry.entry),// <-- only call formatName if a name isn't specifiedentry: entryPath,template: entry.template,outPath: entry.outPath};
This should be backwards compatible with all existing uses, but allow finer grained control over the naming of outputted files.
The text was updated successfully, but these errors were encountered:
Would you be open to a PR that allows users to specify the name (prefix) of an entry? I'm happy to do the work, just want to make sure it would be accepted if I did. It would look something like:
In essence the change would be in the return statement of
getValidSettings
:This should be backwards compatible with all existing uses, but allow finer grained control over the naming of outputted files.
The text was updated successfully, but these errors were encountered: