Answer the question
In order to leave comments, you need to log in
How to log the version of client js files when logging client errors?
The project uses Angular 5 and has implemented logging of client-side angular and js errors on the server side - when such an error occurs, general information is sent to the server - error, stack, browser, etc.
I would like to add to this information data about the version of the application with which the user is working, in order to understand whether the version is current or cached by the browser.
I build the build using ng build . I
imagine the algorithm as follows - when you call ng build, the counter in some js file that will be included in the project will increase before the build itself.
How to implement it? Or are there other ways?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question