When caching to filesystem, html-bundler-webpack-plugin is breaking #109
Replies: 2 comments 4 replies
-
The supporting of the Can you please create a small as possible a repo with reproducible problem. You can copy&past your React project, but replace in the project all "business secrets" with a dummy data. P.S. the html bundler plugin is not designed/optimised for using with React. React have own building system or Vite is the bests choice. |
Beta Was this translation helpful? Give feedback.
-
I have just tried to set cache to I turned logging on in webpack.config infrastructureLogging: {
level: 'verbose',
}, The first build has some information about caching, but succeeds:
Second build without any changes fails with errors:
I use
I haven't found any clear instructions on caching for plugins. I guess it's not an easy task with the current Webpack architecture. |
Beta Was this translation helpful? Give feedback.
-
Hello again,
In short, I have a big React app and CPU/Memory usage with webpack goes very high, like 6GB, crashing my system.
So I decided to change the webpack caching to file system, like this:
Now, with webpack infrastructure logging enabled, I see this new error:
Looks like there is a problem with the base HTML I'm importing in pug format that way:
I think the bug is, it should compile the pug file before it gets cached.
Is this library tested when webpack is compiled into file system instead of memory while using pug?
Beta Was this translation helpful? Give feedback.
All reactions