What are the best practices for displaying version information in web applications?
P粉323374878
P粉323374878 2024-04-06 19:13:16
0
2
665

I am developing a web application.

What are the best practices for displaying version information in web applications?

I'm using semantic versioning and I already have semver e.g. 1.2.0

But I'm curious where is the best way to display it and how to manage it. I'm considering:

  • Store the version in the "version" file.
  • When the app is launched, read the content from the version file and display it in the version field of the "About" tab.

Is this method reasonable?

Are there any examples in jsfiddle or codepen on how to do this?

Thanks

Chaff

P粉323374878
P粉323374878

reply all(2)
P粉025285056

<a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=eIuh4z0ka9vahJFJozzl2Kic7AQgTbg3&jump_from=webapi&authKey=HG6G/ qJK4rSr5rl689c4KYQFUosQcg89uvSeBoI1JoC9mJPAX86da58XrwtRevW"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="《龙腾万里》RR69" title="《龙腾万里》RR69"></a>

P粉145543872

Yes, you can do it your way. Another way is to read the version

from the package.json file
import {version} from './package.json';

and use it in your About page.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template