mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-06-17 21:25:00 +02:00
22 lines
407 B
JavaScript
22 lines
407 B
JavaScript
const modern = require('../../src/modern');
|
|
const favicon = require('serve-favicon');
|
|
|
|
module.exports = {
|
|
name: 'favicon',
|
|
options: {
|
|
__root: 'location',
|
|
location: {
|
|
type: String,
|
|
file: true,
|
|
env: 'FAVICON'
|
|
}
|
|
},
|
|
|
|
before: [
|
|
ctx => {
|
|
if (!ctx.options.favicon.location) return false;
|
|
return modern(favicon(ctx.options.favicon.location))(ctx);
|
|
}
|
|
]
|
|
};
|