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

Webpack 4 Deprecation Warning #19

Open
texmex44 opened this issue Apr 20, 2018 · 4 comments
Open

Webpack 4 Deprecation Warning #19

texmex44 opened this issue Apr 20, 2018 · 4 comments

Comments

@texmex44
Copy link

Hi, i have 2 warning when i use the plugin with webpack 4 :

DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
webpack-md5-hash\plugin\webpack_md5_hash.js:29:14)

DeprecationWarning: Chunk.mapModules: Use Array.from(chunk.modulesIterable, fn) instead
webpack-md5-hash\plugin\webpack_md5_hash.js:31:52

@simbo
Copy link

simbo commented Apr 27, 2018

Using webpack >=4.3, you don't need this plugin anymore.

Just use [contenthash] in your output names.

You can also specify hashes more granular like this: [md5:contenthash:hex:20]

@Moghul
Copy link

Moghul commented Jun 28, 2018

@simbo that's specific to the ExtractText plugin. Could you link me to the documentation where [contenthash] is found?

@simbo
Copy link

simbo commented Jun 28, 2018

It's also for webpack itself.
Can't find this in the probably outdated docs...

There you go: https://github.com/webpack/webpack/releases/tag/v4.3.0

See also the "unofficial docs": https://survivejs.com/webpack/optimizing/adding-hashes-to-filenames/#placeholders

@Moghul
Copy link

Moghul commented Jun 28, 2018

Thanks man, I appreciate it! Can't find anything on the webpack website itself.

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

3 participants