Comments (12)
Oh boy! My identicon PR already is merged and on npm! :)
from jus.
No code to merge yet, because I like being able to install jus
and so we can't add 'identicon' as a dependency yet. But when we do, my code looks something like this:
// lib/server.js
const express = require('express')
const cors = require('cors')
...
const identicon = require('identicon')
const favicon = require('serve-favicon')
var server = module.exports = express()
server.use(cors())
// Create unique favicon from the current working directory
var faviconPNG = identicon.generateSync({id: process.cwd(), size: 16})
server.use(favicon(faviconPNG))
...
from jus.
Looks good, but is there a check to serve an existing favicon if one exists?
from jus.
Right, obviously an actual favicon.ico would take priority. I suppose that would mean putting server.use(favicon(faviconPNG))
farther down, as a fallback for the static server.
from jus.
So this is just for development? Or do you also intend to kick out a default favicon in the build process if none exists?
from jus.
I was just thinking of during development, to help me keep my tabs straight. Do you think people would want a defacto favicon in the built version?
from jus.
Do you think people would want a defacto favicon in the built version?
Probably not. Just clarifying your intent. :)
from jus.
How seriously do we take IE support? Apparently some browser STILL doesn't accept PNG favicons. There's a to-ico
module that can convert a PNG buffer to an ICO buffer, but it'll drag in a bunch more dependencies.
Edit: Correction! I have maligned IE unjustly. It does take PNG favicons. It is just very VERY stubborn about caching favicons. (Had to delete the browser history to uncache them.)
from jus.
Edit: Ignore my original grumpy old man statement. Feel free to discuss the feature / concept in this thread and critique the implementation in the pull request. Apparently in the grand scale of things that is supposed to make life less confusing.
(grump grump grump) Is there not a way to turn an existing issue into a pull request? I feel like the discussion should move to the pull request #63 but it's annoying that it's gonna fragment the conversation thread by doing that.
from jus.
Is there not a way to turn an existing issue into a pull request?
Pretty sure you can still do it with https://hub.github.com/
from jus.
Oh my. Googling that led to some loooong discussion threads. It sounds like the recommended practice is to separate concerns: issues for the bug / feature itself, pull-requests for the implementation details. Now I know, let's go with the flow. :)
from jus.
Merged in #63
from jus.
Related Issues (20)
- Consider using `consolidate.js` library for abstracting different template options
- Feature: Add YAML support for 'page' type files (not just for 'datafile' type) HOT 1
- List of excluded files HOT 8
- Inkscape-generated SVG error from `image-size` library HOT 1
- Don't try to parse `svg` fonts as images HOT 4
- Moved jus repos to a GitHub organization! HOT 1
- Replaceable Markdown processor HOT 2
- path-exists should be a dependency, not a dev-dependency?
- Modularizing jus HOT 19
- Automagically generate thumbnails HOT 6
- Remove old 404 ¯\_(ツ)_/¯ message
- Remove unneeded 'href-type' dependency
- Overwriting /api HOT 9
- Can we import CSS files from node_modules? HOT 1
- Allow Sass Imports HOT 1
- jus development stalled by Node 4 support HOT 3
- Support for more handlebars helpers HOT 2
- Dynamic pages, filtering data, custom helpers, and other templating languages? HOT 8
- README is not up to date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jus.