Skip to content

Commit

Permalink
feat: support ico
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 12, 2018
1 parent 2e39bdc commit 834131b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ These are default handles. See [options](#options) section to see how to customi

Handler | Extensions | Mime type | Placeholder
---------|---------------------------------------------------|--------------------------|-------------------
default | any unknown extension | - | -
css | `css` | `text/css` | `/* style not found */`
html | `html`, `htm` | `text/html` | `<!-- page not found -->`
image | `png`, `jpg`, `jpeg`, `gif`, `svg`, `webp`, `bmp` | `image/gif` | transparent 1x1 image
js | `js` | `application/javascript` | `/* script not found */`
json | `json` | `application/json` | `{}`
map | `map` | `application/json` | `{"version": "3", "sources": [], "mappings": "" }`
default | any unknown extension | - | -
css | `css` | `text/css` | `/* style not found */`
html | `html`, `htm` | `text/html` | `<!-- page not found -->`
js | `js` | `application/javascript` | `/* script not found */`
json | `json` | `application/json` | `{}`
map | `map` | `application/json` | `{"version": "3", "sources": [], "mappings": "" }`
image | `png`, `jpg`, `jpeg`, `gif`, `svg`, `webp`, `bmp`, `ico` | `image/gif` | transparent 1x1 image

## Options

Expand Down
1 change: 1 addition & 0 deletions src/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'.svg': 'image',
'.webp': 'image',
'.bmp': 'image',
'.ico': 'image',
// js
'.js': 'js',
// json
Expand Down

0 comments on commit 834131b

Please sign in to comment.