|
|
|
@ -1,4 +1,4 @@
|
|
|
|
function filterByResolution(file, mode, resolution) {
|
|
|
|
const filterByResolution = (file, mode, resolution) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (mode === 'exclude') {
|
|
|
|
if (mode === 'exclude') {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
@ -40,6 +40,6 @@ function filterByResolution(file, mode, resolution) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
throw new Error('Plugin error, no filter mode specified');
|
|
|
|
throw new Error('Plugin error, no filter mode specified');
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = filterByResolution;
|
|
|
|
module.exports = filterByResolution;
|
|
|
|
|