How to inject Webpack build hash to application code

后端 未结 5 1377
花落未央
花落未央 2021-01-04 08:29

I\'m using Webpack\'s [hash] for cache busting locale files. But I also need to hard-code the locale file path to load it from browser. Since the file path is altered with [

5条回答
  •  余生分开走
    2021-01-04 09:22

    On server, you can get the hash by reading the filenames (example: web.bundle.f4771c44ee57573fabde.js) from your bundle folder.

提交回复
热议问题