olahol / reactpack

:package: build your react apps with one command and one `npm i`.
982 stars 36 forks source link

Pass publicPath to Webpack dev server #22

Open meghprkh opened 8 years ago

meghprkh commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

Please wait till this gets merged

olahol commented 8 years ago

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

victorb commented 8 years ago

@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.