shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.43k stars 186 forks source link

ManifestPlugin frequently serve old css files #220

Closed paztis closed 3 years ago

paztis commented 3 years ago

When using my project in dev mode, after a big of time, ManifestPlugin stops to update the contenthash in the filename HtmlWebpackPlugin well do it: when I modify my scss code, webpack rebuilds it and new css files are well injected. But the manifestPlugin is pointing to old css files and is never updated.

This frequently appears after long dev time I also notice if when I switch my network without restarting the webpack-dev-server (perhaps there's a link between both)

shellscape commented 3 years ago

Hey @paztis, we just took this project out of a deprecated state and are starting to give it some attention. Unfortunately with issues unless you provide a reproduction, we probably can't help you. You can read https://git.io/fNzHA for instructions on creating a minimal reproduction. It's a good practice no matter which project you're interacting with.

jkevingutierrez commented 3 years ago

I'm having a similar error using webpack-dev-server. ManifestPluging is not reflecting the changes when I update a file using webpack-dev-server. I need to run the regular webpack command otherwise, ManifestPluging doesn't show the changes

shellscape commented 3 years ago

@jkevingutierrez you might want to open an issue with webpack-dev-server in that case. If it doesn't happen with regular webpack, but happens with dev-server, it's probably a dev-server issue.

I would also suggest giving webpack-plugin-serve a try. For most users, it's a superior experience https://github.com/shellscape/webpack-plugin-serve