-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: webpack config changes #419
Conversation
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #419 +/- ##
==========================================
+ Coverage 67.08% 67.25% +0.17%
==========================================
Files 407 406 -1
Lines 9147 9123 -24
Branches 1614 1610 -4
==========================================
Hits 6136 6136
+ Misses 3011 2987 -24
Continue to review full report at Codecov.
|
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
} | ||
const distPath = path.join(__dirname, 'dist'); | ||
app.use( | ||
// This path should be in sync with the `publicPath` from webpack config. |
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.
nit: this comment is redundant
const BASE_URL = process.env.BASE_URL || ''; | ||
|
||
/** All emitted assets will have relative path to this path | ||
* every time it is changed - the index.js app.use should also be updated. |
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.
nit - line 19 is redundant
# [0.55.0](http://github.com/lyft/flyteconsole/compare/v0.54.2...v0.55.0) (2022-04-22) ### Features * webpack config changes ([#419](http://github.com/lyft/flyteconsole/issues/419)) ([f93e94f](http://github.com/lyft/flyteconsole/commit/f93e94fd5b04c8da65b0bcd97ce1097451d83b28))
🎉 This PR is included in version 0.55.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Updates to webpack configuration
Type
Are all requirements met?
Complete description
Separate dev & prod settings to two files
Always clean builds
Fix for hot reload feature
Use CDN for react and react-dom in prod
Open local site in chrome browser after webpack build is ready (when yarn start is used)