Skip to content
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

Load existing webpack.config.js file... don't require 'webpack' entry. #442

Closed
burtonator opened this issue Jun 26, 2020 · 2 comments
Closed

Comments

@burtonator
Copy link

I'm a bit confused by how the webpack config is specified.

I think it's generating it's own if you don't' specify it in karma.conf.js

The problem is that my webpack is super complicated, loads plugins, etc.

I'd rather it be simple but it's not.

I can't 'require' the webpack as karma-webpack then gives me an error saying the configuration isn't valid.

I'm not sure the right strategy here. The existing config might not be readable as JSON so you can't really change it directly.

I'm REALLY trying to avoid repeating myself in my config as I have far far too many duplicate config files as it is.

@codymikol
Copy link
Owner

You should not specify an entry point as this is something that happens internally. I made an issue over here about handling this invalid field in configuration. Do you think that would solve your issue?

@codymikol
Copy link
Owner

closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants