fuck_grunt

0.0.2 • Public • Published

fuck_grunt

Concat and minify the javascript and CSS on any webpage. Just point fuck_grunt at the page and it'll give you back the html, js, and css files.

This is definitely a hack, but useful if you already have a running site and just want to combine and minify your files without spending a lot of time getting a whole grunt setup going. Yes you'll have to do it again if you change any code, but that's why this is called a hack. =-)

Installation

$ npm install -g fuck_grunt

Usage

$ fuck_grunt http://www.dailypuppy.com/

Programmatic Usage

var fuck_grunt = require('fuck_grunt');
 
// Just process files
fuck_grunt('http://www.dailypuppy.com', handle_result);
 
// Process files and write to current directory
fuck_grunt('http://www.dailypuppy.com', {write_files: true}, handle_result);

Result Data

{
  "html": {
    "filename": "..."    // filename of output file or null
    "content": "...",    // processed file content
    "files": [...]       // list of files included in content
  },
  "js": {
    "filename": "...",
    "content": "...",
    "files": [...]
  },
  "css": {
    "filename": "...",
    "content": "...",
    "files": [...]
  },
}

Readme

Keywords

none

Package Sidebar

Install

npm i fuck_grunt

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • mattinsler