1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 11x 11x 96x | const favicon = require('serve-favicon');
module.exports = {
name: 'favicon',
options: {
__root: 'location',
location: {
type: String,
file: true,
env: 'FAVICON'
}
},
before: [
ctx => ctx.options.favicon && ctx.options.favicon.location
? ctx.utils.modern(favicon(ctx.options.favicon.location))(ctx)
: false
]
};
|