grunt-injector-proxy
Insert html strings into proxied documents
Last updated 5 years ago by mikeklemarewski .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-injector-proxy 
SYNC missed versions from official npm registry.

grunt-injector-proxy

Insert content into proxied documents

Inject Task

The default task is the injectorProxy task. It starts the injecting proxy server on ports 80 and 443, so you must run this command as root:

sudo grunt injectorProxy

Example

grunt.initConfig({
  injectorProxy: {
    options: {
        contentPath: 'static/content.html',
        keepalive: true
    },
  },
});

Options

options.contentPath

Type: String Default value: static/content.html

A path to a file with the content that you wish to inject into proxied pages

options.keepalive

Type: boolean Default value: false

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

3 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 4
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |