{
  "name": "grunt-cdn",
  "description": "Properly prepends a CDN url to those assets referenced with absolute paths (but not URLs)",
  "version": "0.2.3",
  "homepage": "https://github.com/tactivos/grunt-cdn",
  "author": {
    "name": "Johnny Halife",
    "url": "http://github.com/johnnyhalife/"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/tactivos/grunt-cdn.git"
  },
  "bugs": {
    "url": "https://github.com/tactivos/grunt-cdn/issues"
  },
  "engines": {
    "node": "*"
  },
  "devDependencies": {
    "grunt": "~0.4.0"
  },
  "keywords": [
    "gruntplugin",
    "cdn"
  ],
  "readme": "[Grunt][grunt] plugin for properly prepending a CDN url to those assets referenced with absolute paths (but not URLs)\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nInstall this grunt plugin next to your project's gruntfile with: `npm install grunt-cdn`\n\nThen add this line to your project's `Gruntfile.js` gruntfile:\n\n```javascript\ngrunt.loadNpmTasks('grunt-cdn');\n```\n\nThen specify your config:\n\n```javascript\n    grunt.initConfig({\n        cdn: {\n            options: {\n                /** @required - root URL of your CDN (may contains sub-paths as shown below) */\n                cdn: 'http://cdn.cloudfront.net/container/',\n                /** @optional  - if provided both absolute and relative paths will be converted */\n                flatten: false\n            },\n            dist: {\n                /** @required  - string (or array of) including grunt glob variables */\n                src: ['./static/*.html', './static/*.css', './static/*.soy'],\n                /** @optional  - if provided a copy will be stored without modifying original file */\n                dest: './dist/static/'\n            }\n        }\n    });\n```\n\n### Example\n\nWith the following input\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n    <title>Mural.ly</title>\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"/static/compiled.css?v=13512tyu3kds\" />\n</head>\n<body id=\"landing-page\">\n...\n</body>\n</html>\n```\n\nAfter running the task the output looks like\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n    <title>Mural.ly</title>\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"http://cdn.cloudfront.net/container/static/compiled.css?v=13512tyu3kds\" />\n</head>\n<body id=\"landing-page\">\n...\n</body>\n</html>\n```\n\nAs you can see we maintain the \"container\" pathname in this case, and we also keep the original\nquery strings. This task is really handy if you upload stuff from your CI to make it transparent\nto developers.\n\n## Release History\n* 0.1.3 Grunt 0.4 ready\n* 0.1.0 Initial Release\n\n[grunt]: https://github.com/cowboy/grunt\n",
  "readmeFilename": "README.md",
  "_id": "grunt-cdn@0.2.3",
  "_from": "grunt-cdn@~0.2.3"
}
