Update versions of js-files in index.html

Hello,
I have a question about updating versions of js files in index.html. (I mean “v=139”)
I thought that webpack have to update it (as HTMPWebpackPlugin) but Jitsi-meet does not use this plugin.
So, the question is how to update it? Should I make it manually after every build (make)?

When building the deb package we do that manually:

# Use the jitsi-meet package version as the version for app.bundle.js
sed -i.bak  -e "s/app.bundle.min.js?v=[[:digit:]]*/app.bundle.min.js?v=$VERSIONMIN/" index.html
sed -i.bak  -e "s/lib-jitsi-meet.min.js?v=[[:digit:]]*/lib-jitsi-meet.min.js?v=$VERSIONMIN/" index.html
sed -i.bak  -e "s/all.css/all.css?v=$VERSIONMIN/" index.html
sed -i.bak  -e "s/interface_config.js?v=[[:digit:]]*/interface_config.js?v=$VERSIONMIN/" index.html
1 Like