grunt-reload-chrome
v0.1.4
Published
A grunt task to reload chrome tabs.
Downloads
10
Readme
grunt-reload-chrome
Getting Started
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-reload-chrome --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-reload-chrome');
Reload Chrome task
Run this task with the grunt reload
command.
Task targets and options may be specified according to the grunt Configuring tasks guide.
Usage Examples
reload: {
homepage: {
options: {
url: 'http://localhost:5000/'
match: /Chi/
}
},
current: {
options: {
match: /Chi/
}
},
}
With match
you specify the title to match, it can be a regular expression or just an exact string. The tab must already be opened within your browser.
If you specify an url
, the location will be set to that exact url. If you
specify nothing the url will be replaced with itself causing it to reload the page.
Release History
- 2013-11-22 v0.1.0 Initial version.