I need to version every build and display it in app. I’ve tried to use this tutorial but it didn’t work for me https://dmitriy-comarov.medium.com/app-version-from-package-json-with-react-and-webpack-84097bd3f4f9
Is there any way to make it work?
Advertisement
Answer
You still can follow this tutorial above but if you are not using typescript you don’t have to declare ‘VERSION’ variable. You can call it straight from webpack. And don’t forget add ‘version’ property in your package.json