-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a different webpack config based on the entry name #842
Comments
Working on a PR that will allow overriding these options through env variable. Would that help?
May be create a |
Like the other configs, this file could inherit the other files. I suppose that the file could use the ENV rather than having server.test.js, server.development.js, server.production.js. What do we do about the webpacker.yml file? Are we going to write to the same or a different manifest? |
The examples posted in #732 didn't use any other config apart from what is provided with Webpacker and server rendering works, except that one would need to turn off Even if one want to include several packs inside one bundle, you could require them all inside one pack like It could use same manifest I suppose. Why another manifest? |
Per #732, we need to run the dev server like this:
This is one of a bunch of cases where we need a different webpack config for the server rendering bundle vs. the client bundles. Why? The client bundle is run in a browser, and the server bundle is on either execJS or Node.
We have a clear way to differentiate the Rails Env based webpack configs...
How do we do we configure a different config for a given entry?
The text was updated successfully, but these errors were encountered: