In my application I have multiple entry points. One entry point is creating a bundle which is restricted only for signed in users.
Is there a way to tell webpack to not bundle any file that needs to be restricted into the 'public' bundle? and instead not bundle it / throw a compilation error?
is there an exclude per entry point?
The only solution I can think of is creating two separate webpack config files, is there a better way?
Thanks
--- edit ---
I will try to rephrase the question - Is there a way to enforce that some files will be excluded from a specific bundle/entry point, or in other words, there are files that I want in a specific bundle, and not in a any other bundle, and I want to enforce it.
from webpack - exclude files from specific entry point
No comments:
Post a Comment