July 2018
Intermediate to advanced
354 pages
8h 51m
English
Because Sonar is not part of a browser, but a node module, it needs to be executed either within a custom node script or by using its command-line interface. The CLI is the best place to start using Sonar, and like Lighthouse, you need to install Sonar first. Again, I recommend a global install:
npm install -g sonarwhal
Before you can run Sonar, you need to create a configuration file, .sonarwhalrc. You can do this by hand or use the command line to initialize a configuration file:
> sonarwhal --init
This kicks off a wizard, asking you a series of questions to initialize your configuration. You can choose a predefined configuration or make a custom configuration:
There are two predefined configurations available at ...
Read now
Unlock full access