Git Product home page Git Product logo

ember-cli-favicon's Introduction

Ember-cli-favicon

This README outlines the details of collaborating on this Ember addon.

Installation

$ ember install ember-cli-favicon

Usage

Just save an image to public/favicon.png (try to make sure it's at least 256x256). If you want to include different favicons for the different platforms, you can either supply different images with a filename that matches the platform, i.e.:

public/android.png
public/appleIcon.png
public/appleStartup.png
public/coast.png
public/firefox.png
public/opengraph.png
public/windows.png
public/yandex.png

Or you can supply your own image paths via config, if you don't want to generate favicons for all those platforms (this config is passed directly into the favicons module):

// Brocfile.js
var app = new EmberApp({
  favicon: {
    // config here
  }
});

ZOMG!!1! 30 seconds to build?

This addon uses the favicons module, which makes a call to the RealFaviconGenerator API to generate your favicons, hence the ridiculously long builds. But it caches the results and only rebuilds on changes (including across ember server restarts!), and you don't change your favicon that often, right?

Why an API for something like this? Well, proper favicon support is tricky and ever evolving. Sure you could probably generate this on your local machine using some imagemagick binding or something, but then you or I would have to become an expert on favicons to make sure this package stayed up to date. And there are already experts out there. They even built an API. So let's use that.

Hence the long build times.

ember-cli-favicon's People

Contributors

davewasmer avatar ember-tomster avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.