reactpack icon indicating copy to clipboard operation
reactpack copied to clipboard

Pass publicPath to Webpack dev server

Open meghprkh opened this issue 9 years ago • 4 comments

This allows us to have the dev server running on for a subpath instead of the domain.

For example serving on localhost:8000/example instead of localhost:8000. This makes it run like it would run in the production environment.

meghprkh avatar Jun 30 '16 16:06 meghprkh

Please put this PR on hold. Apparently for me webpack-dev-server is not working with historyApi Fallback when publicPath is given.

Ref https://github.com/webpack/webpack-dev-server/issues/216

meghprkh avatar Jun 30 '16 16:06 meghprkh

Referencing https://github.com/webpack/webpack-dev-server/pull/518 .

Please wait till this gets merged

meghprkh avatar Jun 30 '16 18:06 meghprkh

Nice work patching webpack-dev-server :+1:, will merge and update the dependencies then

olahol avatar Jun 30 '16 19:06 olahol

@meghprkh this can also be set via setting the devServer key in webpack.config.js, since https://github.com/olahol/reactpack/pull/27 has been merged.

victorb avatar Aug 17 '16 09:08 victorb