Closed GabLeRoux closed 11 years ago
+1 Please merge, this is a show stopper for me using grunt-open
That will be a very useful feature. My personal workaround is to make Chrome my default browser in Mac OS X, which is not exactly what I need.
+1
Thanks for the patience and thanks @GabLeRoux for the PR. Just published 0.2.2
:+1:
:+1::+1:
Hey, how exactly I can specifiy to open Chrome Canary? thx
I think this worked for me on osx
grunt.initConfig({
open : {
dev : {
path: 'http://127.0.0.1:8888/',
app: 'Google Chrome Canary'
},
}
})
grunt.loadNpmTasks('grunt-open');
Not quite sure about windows.
Hmm, doesn't work on Windows :-/
I would assume you'd have to enter the path to the executable on windows. I don't have a windows machine to test, so feel free to submit a PR clarifying documentation or adding win support.
I tried that, but either couldn't get the right path or something else was wrong.
In case anyone's looking, you'll need a full path to the exe on Windows C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe
.
Added
app
parameter to resolve #3 and added a basic callback to display an error if something went wrong with open command.Only tested on a mac, but should work on other os.