-
-
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
[webpack v4] - default to './src/' if entry is not provided #1308
Comments
@SpaceK33z I searched for a little bit in the code but couldn't find where the best place to make this change would be. I'm happy to PR it, or theres probably others who would too, if you just want to leave a note which part of the code we could default this value. Essentailly WebpackOptionsApply now is responsible for defaulting the entry if it isnt provided (#0CJS) so we should find a way to respect this. |
Thanks for your report! Interesting, this does work when you use the API but not with the CLI. The fix should be made somewhere in A PR is very welcome! |
Alright I'll try and get this done today. |
For those wanting to contribute:
Valid test scenario:
|
I think this lies more with the I've submitted a PR here that adds the default entry point in the CLI, meaning we're not modifying the config in the dev server |
Ignore that last comment, the issue lies with the dev server. The dev server will generate a small webpack config if not given one (or if given one), that adds the |
Fixed in |
Code
The text was updated successfully, but these errors were encountered: