how to add webpack-dev-server cors header via cli?
ederzz opened this issue · 5 comments
As title, help!
Impossible, but we can add them @webpack/cli-team sounds like a easy improvement, let's add flag to webpack-dev-server, so webpack-cli will support it
Impossible, but we can add them @webpack/cli-team sounds like a easy improvement, let's add flag to webpack-dev-server, so webpack-cli will support it
Ok,a little sad...
Yep. We can add it to webpack-dev-server. We may need custom type like --env
or you want to pass json from CLI directly?
Yep. We can add it to webpack-dev-server. We may need custom type like
--env
or you want to pass json from CLI directly?
I just thought the config in json could be set in cli options, and then found it not work.
Closing due to inactivity. We have the --env
variables, so you can setup it inside configuration, CORS can be different so it is hard to implement all possible cases, so better to do it in configuration