Replace remote styles and fonts with the ones served locally #826
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR attempts to address some of the points in issue #714 (Improve offline functionality):
leaflet
's stylesheets are now bundled with webpack.font-awesome
's stylesheets and fonts are are now bundled with webpack. Officialfont-awesome
package is added as a dependency.typeface-lato
is added. This package includeswoff
andwoff2
formats and this should cover the majority of target browsers, including IE 9 and Safari 5 (see: caniuse.com/woff)Verification
git clone https://github.com/nextstrain/auspice cd auspice git pull origin pull/826/head
-domain:localhost
(meaning "not", "domain", "localhost").api.mapbox.com
and, eventually,chrome-extension://*/backend.js
from installed Chrome extensions.