Closed havenchyk closed 6 years ago
Looks good! Before we merge this, I want to double-check that there isn't already a way to handle this via Webpack (SingleEntryPlugin vs MultiEntryPlugin). Otherwise I think this will work great!
@developit From what I see, MultiEntryPlugin works the same way as Single, but we can pass an array there. There is also another like EntryPoint plugin, but I'm not sure how to use it because I'm not familiar how to apply it(constructor doesn't accept arguments and plugin relies only on event), but it handles all type of entry (array, object and string)
Does this commit will fix the bug that entry is an object ?
@vaxilicaihouxian I hope so. https://github.com/GoogleChromeLabs/prerender-loader/pull/8/files#diff-c193db11b3837e38bd24c06b98cb93ffR38 this line uses entry as an object
@havenchyk But it seems that this commit has not been merge to the master branch.How can I use it?Pull from your fork branch?
Sorry for the delay! I have a project setup to test this easily now.
Add a basic support of object and array for entry property
accordingly with https://github.com/GoogleChromeLabs/prerender-loader/issues/3#issuecomment-393671513