benwiley4000 / react-gif-player

📽 A GIF component that moves when YOU want it to!
https://benwiley4000.github.io/react-gif-player/
MIT License
94 stars 32 forks source link

Enable webpack-dev-server #7

Closed Barryrowe closed 7 years ago

Barryrowe commented 7 years ago

This adds a configuration for using webpack dev server to make development easier. This changes npm run dev to run webpack-dev-server which still watches the source for changes, but now automatically refreshes the served example page on source changes.

Fixes #6

benwiley4000 commented 7 years ago

Thanks for this - very helpful. I made a few changes - I wanted the file to stay called example.html so I updated the express config to use that file as the index. I also made it so the page gets opened automatically in the user's browser.