-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cached value is 'null' in CacheMd5 when @require in stylus #330
Comments
hmm it looks like values are set, but on next run... |
@piecyk I think this is caused by the new data serializer because of a small incorrect detail that'll be easy to fix. If you run with I'm replacing the old default primarily for stability. The old default has a few race conditions that have been difficult to hunt down, causing some builds to fail that otherwise normally do not. The new default cleans that up by taking a different but still fast approach (compared to other cache layers I've tried) that is actually unexpectedly faster than the old default. |
Yeah 👍 it looks like path madness, basic here hard-source-webpack-plugin/lib/CacheMd5.js Line 238 in 37f33f7
key is an absolute path set to null for example but here, where we want to remove it, file path is relative hard-source-webpack-plugin/lib/CacheMd5.js Line 401 in 37f33f7
it's Overall @mzgoddard awesome changes, much more easy to follow what is happening 👏 |
running it like this new HardSourceWebpackPlugin({
cacheDirectory: path.resolve(webpackCacheDir, 'hard-source/[confighash]'),
}),
new HardSourceWebpackPlugin.SerializerAppendPlugin(), the same output
|
It looks like when normalize the file path between
|
Yeah it's resolved 👍 thanks @mzgoddard |
Expected Behavior
Actual Behavior
Is an error being thrown?
Steps to Reproduce
Basic when changing styles in some
Gloabl.styl
that looks likeHard source will throw with the exception above, when change
margin
for example to 10px on
next run
... Looks like the cached value is nullWill dig more, current when patching this with piecyk@f6268f1
everything works as expected
Essential package.json
webpack config stylus rule
The text was updated successfully, but these errors were encountered: