Closed DimaGashko closed 4 weeks ago
Hello @DimaGashko,
thanks for the issue report. Can you please create a small repo with reproducible issue?
The supports of filesystem
caching is experimental because I cannot guarantee 100% functionality in all use cases.
The filesystem
caching is very very complex to integrate with this powerful plugin on all levels.
Thanks to the issues reported by users, I can implement missing or incorrect functionality.
Yes of cause I will release the supports of filesystem
caching, it is very important feature, but I need help of community to test it and report issues.
Feel you free to create feature requests or a bug issues.
Here's the repo: https://github.com/DimaGashko/html-bundler-plugin.filesystem
@DimaGashko
yes, I can reproduce the issue. I will research the "silent mode" and try to fix it.
Using memory
caching:
Using filesystem
caching:
@DimaGashko
currently you can use the verbose: true
plugin option to display all precessed assets:
new HtmlBundlerPlugin({
entry: {
index: './src/index.html',
},
verbose: true,
}),
The plugin has own verbose to display all entry points and dependencies:
@DimaGashko the issue is fixed in the v4.1.3
@webdiscus looks great. The output is displayed as expected. When the build fails as well. And even more - the cache was broken after failed build but now it works properly as well.
Thanks for that fast response and even fix!
Current behaviour
I know it's experimental, but I just not sure if it's expected behavior for now or not. When I set
cache.type = 'filesystem'
the build doesn't have any logs in the terminal.Here I run the build a few times - with cache.type=memory, cache.type=filesystem, and one more time after deleting the cache directory. Only first time I get any output in the terminal. Each time I got the correct build.
If the build fails (e.g. change the img path to non-existing), I still see no errors, but when I fix the issue and try to rebuild (or just rebuild instantly) - it fails.
When I delete the plugin and uncomment the entry property of the config - everything is working as expected.
Expected behaviour
I expect to see the same output in the terminal as usual, and also I expect the build to fail when there was problems during the build.
Reproduction
Config I used for testing:
Environment
Additional context
p.s. what also your predictions/plans for cache.type=filesystem? Will it be fully supported sometime in the future? In a year, two, n years? So we can understand what to expect.