-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-2268. Adding png and jpg support for helium module imports. #2313
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
|
\cc @1ambda |
|
LGTM however, @volumeint Could you setup travis-ci for your fork and see if it passes the test? Please take a look CI. FYI,
|
|
I configured travis-ci for my fork. Build passes, but I had to re-run two of the build jobs due to flaky tests. |
| test: /\.ttf(\?\S*)?$/, loader: 'url-loader', }, { | ||
| test: /\.svg(\?\S*)?$/, loader: 'url-loader', }, { | ||
| test: /\.png(\?\S*)?$/, loader: 'url-loader', }, { | ||
| test: /\.jpg(\?\S*)?$/, loader: 'url-loader', }, { |
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.
perhaps this is better in the future if configurable by admin?
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.
It would be better to use webpack.config.js provided by helium developer.
For example, if a helium project includes webpack.config.js, apply it instead of using default one.
|
LGTM and merge to master if no further discussions. |
### What is this PR for? To allow helium modules to import CSS that contains references to png or jpg images. ### What type of PR is it? Improvement ### Todos * [ ] - Task ### What is the Jira issue? * [ZEPPELIN-2268] ### How should this be tested? The volume-leaflet helium module [https://github.com/volumeint/helium-volume-leaflet] imports the Leaflet css file. That css file references a couple of png files. Before this change, the helium module would fail to enable, after the change it succeeds. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No. Author: Thomas Grant <[email protected]> Closes apache#2313 from volumeint/master and squashes the following commits: 672b789 [Thomas Grant] Merge branch 'master' of https://github.com/apache/zeppelin c736dbe [Thomas Grant] Merge branch 'master' of https://github.com/apache/zeppelin 19500d5 [Thomas Grant] ZEPPELIN-2268. Adding png and jpg support for helium module imports.
What is this PR for?
To allow helium modules to import CSS that contains references to png or jpg images.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
How should this be tested?
The volume-leaflet helium module [https://github.com/volumeint/helium-volume-leaflet] imports the Leaflet css file. That css file references a couple of png files. Before this change, the helium module would fail to enable, after the change it succeeds.
Screenshots (if appropriate)
Questions: