-
Notifications
You must be signed in to change notification settings - Fork 54
1197 npm build warnings in ci #1203
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
Conversation
jochenklar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice thanks for looking into it. However, I don't want the profile hints in watch mode. But I want the export 'default' warning. I thought about adding a warningsConfig in webpack.config.js, but not if args.watch is set. Or we add a build:testing with a testingConfig. What do you think?
|
yeah, also thought about adding another config. By adding a |
|
Yes, and |
9bc5100 to
48c2de7
Compare
| { | ||
| "name": "rdmo", | ||
| "scripts": { | ||
| "build:prod": "webpack --config webpack.config.js --mode production", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest that build:prod fails on warnings and testing does not, but contains the performance hints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ive added an object ignorePerformanceWarnings that build:prodbuild:dist gets so that it can fail on other warnings
48c2de7 to
dff1508
Compare
jochenklar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should name it different from testing if the only difference is that the performance warnings are suppressed. build:warn maybe? It could also fail on warnings i guess. We will probaly not use it much. But you can also merge right away.
|
what about |
dff1508 to
5ffd801
Compare
|
yes, I like it! But ... |
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
5ffd801 to
93e5ece
Compare
jochenklar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
93e5ece to
f0572f7
Compare
|
alright, the ci now uses |
Description
Related issue: #1197
Motivation and Context
How has this been tested?
Screenshots (if appropriate)