-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add console log for npm version number and github hash #324
Conversation
✅ Deploy Preview for 3dstreet-core-builds ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks can you capitalize the V in version so that it says "Version" Also is it possible to include in the console log the last date of the latest commit and the 8 character commit hash from github? |
please also include commit date and hash in the actual console log output in src/index.js |
Almost there, please format the console log output as follows: 3DStreet Version: [Version] (Date: [Date in YEAR-MM-DD format], Commit Hash: #[HASH]) |
This does not work on local development server, when using How to handle this case? |
Close but it still raises errors. Instead, if VERSION does not exist, then simply do not display the console log. |
Bump |
Close but it still raises errors. Instead, if VERSION does not exist, then simply do not display the console log. |
Description
This PR adds a console log statement to log the npm version number from package.json and the current GitHub hash. The version number is injected into the build using the DefinePlugin in webpack, and the log statement is added to the main JavaScript file. This provides useful versioning information and helps with debugging.
Summary of Changes
Fixes #260.
To checkout this PR branch, run the following command in your terminal:
To make tweaks to this pull request, leave a comment below or in the code.