Node.js library for testing HTML files on the fly and output errors in the console with Gulp.js compatibilities
Before start you need to generate Google API key and add Google Search Console API into your Google APIs dashboard.
https://developers.google.com/webmaster-tools/search-console-api/v1/configure
npm i mobile-friendly-test-npmyarn add mobile-friendly-test-npmimport mobileFriendlyTest from 'mobile-friendly-test-npm'
const apiKey = ''
const url = ''
mobileFriendlyTest(url, apiKey)import gulp from 'gulp'
const { parallel } = gulp
import mobileFriendlyTest from 'mobile-friendly-test-npm'
const apiKey = ''
const url = ''
const mobileTestRes = () =>
mobileFriendlyTest(url, apiKey)
export default
parallel(
mobileTestRes
)