nickjj / manifest-revision-webpack-plugin

Write out a manifest file containing your versioned webpack chunks and assets.
ISC License
124 stars 40 forks source link

Add webpack-dev-server support #8

Open mlegenhausen opened 8 years ago

mlegenhausen commented 8 years ago

Current the generated files are not available when using the webpack-dev-server. Is there a way to make the generated files available in the in-memory representation of the dev-server?

nickjj commented 8 years ago

Hi, making it available to the dev server is possible but I think doing so is out of scope for the plugin.

For example, this is a working Python/Flask example that uses webpack along with this plugin to serve md5'd assets with the dev server:

https://github.com/nickjj/demo-for-chattanooga-python-user-group

The python code that introduces the template tags can be found here:

https://github.com/nickjj/flask-webpack

If you have a better idea on how to pull this off, I'm certainly open to suggestions.

mlegenhausen commented 8 years ago

I am using it for creating the Web App Manifest, cause of changing assets paths after webpack processing. Or do you know another approach how to manage such path containing files with webpack?

nickjj commented 8 years ago

Oh, so the main concern you have is you need to restart the dev server if you add/remove assets? I do agree having to do this is annoying. It will pickup edits of existing files, but not new ones.

Haven't figured out how to do this yet.