-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
setting mimeTypes option falls with error #346
Comments
Isn't this something you could change in your Could you provide a better elaboration of what you are trying to accomplish? Is it loading a php file? If so, then this should be sufficient as long as your proxy is defined correctly. |
|
Just hit this issue. I believe it happens when you have multiple webpack configs (e.g. client & server) so "By default this method will throw an error if you try to map a type to an extension that is already assigned to another type. Passing true for the force argument will suppress this behavior (overriding any previous mapping)." |
@gpoitch thanks for answer, can you send this to README? |
@evilebottnawi Still need to figure out the best solution.
|
@gpoitch i think 2 solution is better, in some cases it is normal throw error, but we allow for other force define. |
Fixed #349 @webmasterslava Answer here #346 (comment) and you can use |
setting mimeTypes option falls with error:
In
webpack-dev-middleware/index.js
file replace linemime.define(options.mimeTypes);
by
mime.define(options.mimeTypes, true);
The text was updated successfully, but these errors were encountered: