-
Notifications
You must be signed in to change notification settings - Fork 33
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
Running in webpack watch mode doesn't work after a recompile. #141
Comments
This is my bad. RTFM. |
@wesselvdv -- Which memo? I can't see anything referring to watch mode. Maybe I'm just blind! |
@MynockSpit It's not referring to a watch mode, but to the cache mechanism introduced in webpack 5. You have to put the following in the plugins array in your config: plugins: [
{
apply(compiler: any) {
compiler.hooks.compilation.tap(
'webpack-asset-relocator-loader',
(compilation: any) => {
relocateLoader.initAssetCache(compilation, '');
},
);
},
},
] Took me two days to figure out, so here's to 6 minutes for you. |
Awesome, thank you! |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running in webpack watch mode doesn't work after a recompile, this results in the
__webpack_require__.ab
being scrubbed from theoutput.js
The text was updated successfully, but these errors were encountered: