mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
17 lines
395 B
JavaScript
17 lines
395 B
JavaScript
var extName = require('../vendor/ext-name');
|
|
|
|
function isAsset(filename) {
|
|
var info = extName(filename);
|
|
|
|
return (
|
|
info &&
|
|
info.mime &&
|
|
(/^((image)|(audio)|(video)|(font))\//.test(info.mime) ||
|
|
/application\/((x[-]font[-])|(font[-]woff(\d?))|(vnd[.]ms[-]fontobject))/.test(
|
|
info.mime
|
|
))
|
|
);
|
|
}
|
|
|
|
module.exports = isAsset;
|