Reputation: 95
I am creating a web module with ember paper where i need to use this module offline as well, now when i use the offline mode the ember paper icons doesn't appear instead just the text appears, can anyone help me getting ember paper work offline.
Upvotes: 1
Views: 137
Reputation: 95
If any body is looking for full answer i added below code in my environment file under production environment
ENV['ember-paper'] = ENV['ember-paper'] || {
insertFontLinks: false
};
and i downloaded the icon file from "https://fonts.googleapis.com/icon?family=Material+Icons" and included this in my scss and changed the src for woff2 file to my local file which again i downloaded from "https://fonts.gstatic.com/s/materialicons/v54/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2" .
Upvotes: 2
Reputation: 6397
You can use ENV['ember-paper'].insertFontLinks
to prevent the remote font CSS from being included, at least. You could then store the relevant files locally, though that may be forbidden for licensing reasons.
Upvotes: 2