An Ember addon (v2.16.2) that lazily adds Google Fonts to an Ember application by injecting font declarations into the `content-for: head` hook, avoiding inclusion in CSS files. Supports Ember projects targeting Node 4.5+, 6.*, or 7.*. Follows Ember 2.x versioning. Differentiators: minimal configuration via environment.js, automatic Content Security Policy updates, and lazy loading without blocking render.
npm install ember-cli-google-fontsVerified import paths — ran on the pinned version, not inferred.
Installs the addon and configures Google Fonts with Content Security Policy in an Ember project.
Set environment variable GOOGLE_FONTS_API_KEY or use API key in config.
Update config to use array format: ['Open+Sans:300,400,700'] instead of 'Open+Sans:300,400,700'.
Manually add loading='lazy' attribute if asynchronous loading is needed.
Add 'font-src': "'self' fonts.gstatic.com" to contentSecurityPolicy.
Run 'ember install ember-cli-google-fonts' again or add to package.json and run npm install. Ensure ember-cli-build.js includes it.
Change 'googleFonts: "Open+Sans:300,400,700"' to 'googleFonts: ["Open+Sans:300,400,700"]' in config/environment.js.
No dependency data recorded yet.