Skip to content
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

vulcanize --inline-css breaks tiles #46

Open
balloob opened this issue Sep 21, 2015 · 3 comments
Open

vulcanize --inline-css breaks tiles #46

balloob opened this issue Sep 21, 2015 · 3 comments

Comments

@balloob
Copy link

balloob commented Sep 21, 2015

Vulcanize is the Polymer build tool that can inline HTML and CSS imports. When an app is vulcanized with the --inline-css flag enabled, the map tiles will not show up correctly. This is caused due to the leaflet css file not loading correctly.

I am using Polymer 1.1.0 where external CSS files have been deprecated but should still work.

Can be reproduced by installing vulcanize and vulcanizing the demo.

npm install vulcanize
vulcanize --inline-css demo.html > demo.vulcan.html

Work around is to add this line to your root HTML file before vulcanizing, making the CSS available to all.

<link rel="import" type="css" href="../leaflet/dist/leaflet.css" />
@FranzThomsen1089
Copy link

Having the same issue. Would be extremely nice to have fixed :-) 👍

@13k
Copy link

13k commented Dec 22, 2015

Adding a regular rel="stylesheet" line to the main.css build block worked for me.

In index.html:

<!-- build:css styles/main.css -->
<link rel="stylesheet" href="bower_components/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="styles/main.css">
<!-- endbuild-->

This will inline leaflet.css into main.css in the dist output.

@FranzThomsen1089
Copy link

This would be very nice to have fixed :-)

rajsite added a commit to rajsite/i3-docs that referenced this issue Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants