diff --git a/lighthouse-plugin-ecoindex/bin.js b/lighthouse-plugin-ecoindex/bin.js index 0f7ff7dd..3f410dc5 100644 --- a/lighthouse-plugin-ecoindex/bin.js +++ b/lighthouse-plugin-ecoindex/bin.js @@ -4,6 +4,7 @@ import * as constants from 'lighthouse/core/config/constants.js' import fs, { writeFileSync } from 'fs' +import CustomArtifacts from './gatherers/index.js' import { hideBin } from 'yargs/helpers' import path from 'path' import puppeteer from 'puppeteer' @@ -98,13 +99,7 @@ function getConfig( disableStorageReset: isWarm, }, plugins: ['lighthouse-plugin-ecoindex'], - artifacts: [ - { - id: 'NodesMinusSvgsGatherer', - gatherer: - 'lighthouse-plugin-ecoindex/gatherers/nodes-minus-svg-gatherer', - }, - ], + artifacts: CustomArtifacts, }, } } diff --git a/lighthouse-plugin-ecoindex/gatherers/index.js b/lighthouse-plugin-ecoindex/gatherers/index.js new file mode 100644 index 00000000..4f67c68c --- /dev/null +++ b/lighthouse-plugin-ecoindex/gatherers/index.js @@ -0,0 +1,10 @@ +export default [ + { + id: 'NodesMinusSvgsGatherer', + gatherer: 'lighthouse-plugin-ecoindex/gatherers/nodes-minus-svg-gatherer', + }, + { + id: 'PrintCssGatherer', + gatherer: 'lighthouse-plugin-ecoindex/gatherers/bp/print-css-gatherer', + }, +]