4.0.9 • Published 6 years ago
@hint/connector-chrome v4.0.9
Chrome (@hint/connector-chrome)
A connector to use Google Chrome via the chrome debugging
protocol in webhint.
Installation
First, you need to install webhint:
npm install hintThen, install the new connector:
npm install @hint/connector-chromeUsage
Configure the connector name in your .hintrc
configuration file:
{
"connector": {
"name": "chrome"
},
...
}Options
The set of settings supported by Chrome connector are:
ignoreHTTPSError (boolean): Indicates if errors with certificates should be ignored. Use this when checking self-signed certificates. It isfalseby default.launcherOptions (object): Allows you to pass in additional Chrome command line API flags. This connector uses Chrome Launcher to start Chrome andlauncherOptionswill be relied to it so the same options are supported.waitFor (number): time in milliseconds the connector will wait after the site is ready before starting the DOM traversing and stop listening to any network request. By default, it will wait until the network is somehow "quiet" even though more requests could be processed after DOM traversing. Default is5000.
{
"connector": {
"name": "chrome",
"options": {
"ignoreHTTPSErrors": false,
"launcherOptions": {
"defaultProfile": true,
"flags": ["--headless", "--disable-gpu"]
},
"waitFor": 10000
}
},
...
}Further Reading
4.0.9
6 years ago
4.0.8
6 years ago
4.0.7
6 years ago
4.0.6
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.1
7 years ago
3.0.0
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
1.0.0-beta.1
7 years ago
1.0.0-beta.0
7 years ago