-
Notifications
You must be signed in to change notification settings - Fork 94
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
Overriding default config for file-loader and url-loader #80
Comments
Hey @Veikedo. That's a rather tricky one. If it's really the default config it is conflicting with we could do the following: You could try monkey-patching the Before: function createConfig (configSetters) {
return core.createConfig(webpack, [ createBaseConfig ].concat(configSetters))
} After: function createConfig (configSetters) {
return core.createConfig(webpack, configSetters)
} We could provide a Could you try that and confirm that it works? @eXon I always feared that this default config might cause trouble one day, but hoped it was so generic that it would be ok... What do you think about |
Hi @andywer |
btw as far as you are going to release, could you please add |
Sure :) I don't know if you need the less-loader more than once and if you would like to contribute code, but it would certainly be cool if you would open a PR introducing a Less block 😊 |
Please try Keeping it open until you confirm that it works for you 😉 |
@andywer thank you! However you could not just omit
|
@Veikedo Thanks for the quick feedback! Now the question is... How vanilla should the "vanilla config" be... 😅
I think I've got to sleep a night about that... |
@andywer here is my workaround for that moment
|
interesting that moving my |
That seems odd! Are you sure there is not another problem? (Maybe compare the two generated configs)
Ahhh... I didn't recognize that setting |
PS: Does an empty array as |
@andywer no it does not. At least empty extension must be present |
Yeah, I read the resolve.extensions documentation and I think the whole problem boils down to: If you configure any kind of custom Bottom line: I think the vanilla config should really be vanilla (that means no Does that sound ok to you? |
@andywer I just found that I understand your concerns. However, in my opinion there is nothing bad in providing a skeleton of Also an empty extension |
Good point! There is nothing wrong with providing an empty
The problem is that an empty
Ahh. Ok, then they did not update the docs yet... |
@andywer it's in the migrating guide https://webpack.js.org/guides/migrating/#resolve-extensions |
@Veikedo Can you confirm that adding an empty Or do you need me to publish another |
@andywer unfortunately can't check till next week. I think, it should work fine |
@Veikedo Any news? 😉 |
@andywer oh, sorry. Yes, everything is working. |
Awesome! :) |
I have a question. This configuration for my
.less
fileshowever it's conflicting with default
@webpack-blocks
config created increateBaseConfig
.Is there any way to override the behavior?
The text was updated successfully, but these errors were encountered: