-
Notifications
You must be signed in to change notification settings - Fork 1.5k
No documentation on how to work with/edit configuration #802
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
Comments
@niedfelj Do the docs at https://github.com/rails/webpacker/blob/master/docs/webpack.md help? There is an API to edit some aspects of the environment, like setting/overriding plugins and loaders. Thoughts on what else this should cover? |
@rossta Yes, this goes a long way to explaining the configuration. I think it should be included or linked from the main doc? |
I can't speak for the maintainers to your question, but feel free to open a PR! |
Is there a better way to update entry points?
|
We use expose-loader and some resolve aliases, but the latest webpacker doesn't have any documentation on how to use these with environment.js to edit the environment before toWebpackConfig()...in fact, looking at the source code this doesn't seem possible, so maybe the call toWebpackConfig() should be in environment.js and not in each separate environment so we can make config changes in one spot for global items?
The text was updated successfully, but these errors were encountered: