webpacker icon indicating copy to clipboard operation
webpacker copied to clipboard

Adjusting options for a given entry point

Open tristanoneil opened this issue 9 years ago • 1 comments

I'm curious if it's possible to provide additional options for a given entry point. For instance one of my entry points works fine with the default configuration but one requires some additional configuration in output. Specifically I need to specify the following for one of my entry points.

output: {
  libraryTarget: 'var'
}

From looking at webpack/shared.js there doesn't appear to be an officially supported paradigm to provide additional options on a per entry point basis but I figured I'd ask.

tristanoneil avatar Jun 02 '17 00:06 tristanoneil

@tristanoneil No out-of-the-box webpacker doesn't support this but you can rewrite part of the config if needed - sounds bit tricky though . If however you have found a way to make this possible then feel free to make a PR please 👍

gauravtiwari avatar Jun 03 '17 13:06 gauravtiwari