Issue_#1236 : "npm run serve" now logs warning and usefull info and also show compilation progress #1289
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
bugfix , feature
Fixes ##1236
Did you add tests for your changes?
No
Snapshots/Videos:
If relevant, did you update the documentation?
Summary
so , whenever a developer was running npm run serve , there were no usefull logs during compile time or run time also there was no indicator for progress which can tell how much project is compiled .
there was no usefull troubleshooting information shown for the development or DevOps teams
here is a link to issue: issue_#1236
Does this PR introduce a breaking change?
The integration of a state progress indicator in the webpack configuration and console output enhances the development experience by providing real-time feedback on compilation progress and runtime errors.
Other information
changes i made:
3.the bigger part of this issue :
as our project is bootstraped using create-react-app there is very less custom configuration change one can do . so the only
way is to make changes inside node_modules , in our case it was node_modules/react-scripts/config/webpack.config.js.
but as we know even if u change files inside node_module you cannot commit them so u have to make your own custom
configuration file but making our whole webpack configuration is lot of work so one solution i came up with is to make a
separate config-override file in root directory and use react-app-rewired to change the webpack configuration during
compile time itself.
inside config-override folder u can see a package.json which is made so the commonJs module of react-app-rewired library
to conflict with ES module of our project
Have you read the contributing guide?
YES