Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A problem with this plugin is that regardless of what has changed, the same output assets are always emitted. I've taken a stable at filtering down, but to be honest, I made it a total hack job. For some reason the webpack plugin API doesn't not make it easy (even after reading docs) to figure out what files changed and what assets they belong to. That aside, the goal of this PR is to allow CSS to LiveReload without doing a full page refresh. It does work. However, it relies on adjusting the `startTime` (https://github.com/webpack/docs/wiki/how-to-write-a-plugin#monitoring-the-watch-graph) by offseting `process.uptime()` at least for the first call, otherwise the modified timestamps aren't accurate. It also relies on enabling sourceMaps for css-loader to get access to the css asset children. I'd love a review and tips on how to improve this, but for now this should greatly assist with reloading ExtractTextPlugin-based webpack configs, without requiring the webpack-dev-server.
- Loading branch information