Anu
Anu

Reputation: 471

Yeoman Angular, grunt server always launches IE

Just started using Yeoman Angular generator, but when I run grunt server command, it always opens IE. Tried changes in GruntFile.js

autoprefixer: {
    options: {
      browsers: ['last 1 version', 'Chrome']
    }

But it gives error enter image description here

Any clues how to get it working?

Upvotes: 0

Views: 199

Answers (2)

user1989488
user1989488

Reputation: 123

Simply in your Gruntfile.js you can add an app parameter:

open: {
  server: {
    url: 'http://localhost:XXXXXXXX',
    app: 'Google Chrome'
  }
},

This will work. For reference check this link https://github.com/GabLeRoux/grunt-open/commit/6f2c7069767e58160ec96aaaa8fa20ed210ba183

Upvotes: 1

Pavel Horal
Pavel Horal

Reputation: 18224

If you are still having problems, the following should work:

livereload: {
  options: {
    open: {
      appName: "google-chrome"
    },

Upvotes: 0

Related Questions