Cognizant-CDE-Australia / generator-confit

Build-tool generator for current and future web.
https://odecee.github.io/generator-confit
Other
29 stars 3 forks source link

Switch from PhantomJS to Headless Chrome #124

Closed uglow closed 7 years ago

uglow commented 7 years ago

See:

Need to wait for a PhantomJS-like interface to support existing tools (e.g. Karma)

Nighthawk14 commented 7 years ago

You can use it in karma with this configuration:

{
  browsers: ['Chrome_headless'],
  customLaunchers: {
    Chrome_headless: {
      base: 'ChromeCanary',
      flags: ['--headless', '--remote-debugging-port=9222', 'http://0.0.0.0:9876/']
    }
  }
}

Do not forget to download Chrome Canary: https://www.google.com.au/chrome/browser/canary.html.

We should switch to the official support once it's merged: https://github.com/karma-runner/karma-chrome-launcher/pull/111