christianalfoni / webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express
MIT License
1.39k stars 291 forks source link

Only serve /dist when in production mode #15

Closed stefaneng closed 8 years ago

stefaneng commented 9 years ago

Current if we run npm run build followed by npm start without removing /dist then it will appear that webpack is serving the files but really express is just serving them statically.

Tmarty commented 8 years ago

+1 tested and liked the change.

christianalfoni commented 8 years ago

Great! Thanks, sorry for late merge :-)