Skip to content
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

Memory Leak issue with hash output file name #2803

Closed
davidfabreguette opened this issue Dec 9, 2020 · 2 comments
Closed

Memory Leak issue with hash output file name #2803

davidfabreguette opened this issue Dec 9, 2020 · 2 comments

Comments

@davidfabreguette
Copy link

Hi !
As I was struggling with a memory leak issue on webpack development environment on a slightly big project,
I found this issue on github : webpack/webpack-dev-server#438

I inspected webpacker generated config, and found those "[hash]" in output files names.
So I decided to remove those just to check if it was causing those memory leaks and ... tada !

That seems to be the origin of my problem. Here's my webpack development config :

const config = environment.toWebpackConfig();
config.devtool = 'inline-cheap-source-map';
config.output = {
    ...config.output,
    futureEmitAssets: true,
    filename: 'js/[name].js',
    chunkFilename: 'js/[name].chunk.js',
    hotUpdateChunkFilename: 'js/[id].hot-update.js'
}
module.exports = config;

Can someone explain to me :

  • Why do we have [hash] in output file names ?
  • Is it normal ? and ok to remove them ?
@davidfabreguette
Copy link
Author

And this is my concern : webpack/webpack-dev-server#438 (comment)

@justin808
Copy link
Contributor

Please reopen if still an issue with latest updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants