-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[MINOR] broken logo url in web dev mode #1892
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
d56b36f to
19c5eb8
Compare
|
This fix will bring same issue in production mode if user set |
|
Thanks for review and considering the side effect @minahlee 👍 As your mention, I checked Test 1. When I set Test 2. But, when I set I'll update it and inform to you after resolving this issue. |
19c5eb8 to
4185b47
Compare
|
@minahlee I updated and resolved another way. |
aedd691 to
e9cc2c3
Compare
|
cc @1ambda |
|
Sorry for late reply. I will review and comment ASAP @soralee |
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.
@soralee works well! I left few comments. it would be great if they are resolved as well before merging :)
Additionally, the real problem is that we don't have public directory. This makes a lot of weird webpack configurations (not only static).
I hope we can also solve this problem soon.
Anyway, thanks for caring build tools in zeppelin-web @soralee !
zeppelin-web/webpack.config.js
Outdated
| '/bower_components/', | ||
| require('express').static(path.join(__dirname, './bower_components/'))); | ||
| app.use('**/bower_components/', | ||
| require('express').static(path.resolve(__dirname, './bower_components/'))); |
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.
@soralee I think we can extract require('express') as variable. But it's ok not to modify. it's trivial :)
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.
Thanks @1ambda for review! Yes, it makes sense! Let me updated this part ASAP :)
zeppelin-web/webpack.config.js
Outdated
| require('express').static(path.join(__dirname, './bower_components/'))); | ||
| app.use('**/bower_components/', | ||
| require('express').static(path.resolve(__dirname, './bower_components/'))); | ||
| app.use('**/app/', require('express').static(path.resolve(__dirname, './src/app/'))); |
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 think we don't need app, components, fonts in static. since they are already served using relative paths.
Updated: serving app, component and fonts dirs in static is necessary for supporting nested context path like /a/b as @soralee originally intended.
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.
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.
Actually I missed this issue in production mode.
Yes! I totally agree with @1ambda. I think we need reorganize directory to resolve kind of this issue in correct way.
e9cc2c3 to
7819871
Compare
|
@1ambda I updated to extract |
|
LGTM! |



What is this PR for?
zeppelin logo image (zepLogo.png) is broken in

web devmode like below screenshot.What type of PR is it?
[Bug Fix]
What is the Jira issue?
How should this be tested?
Screenshots (if appropriate)
Questions: