New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-single

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-single

base64 inline images/fonts/icons, reduce, compress = a single page, a single http request. but seriously.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-single

base64 inline images/fonts/icons, reduce, compress = a single page, a single http request. but seriously.

Notice

I needed to hack this together really fast for a quick experiment on pure base64 fonts/images/inline/data-uri with JST inline templates and even automating the processing of stylesheets to embed along with script tags, producing a single http call. There are no tests, and this minimal doc. When I have time (or feel free as always to pull request) I'll be adding base64 fonts, base64 images/icons both inline and as a data-uris. I've only quickly tested it on this small project one setting so try below.

... Edward Hotchkiss.

Install

$ npm install grunt-single --save-dev

Gruntfile & Configuration

Gruntfile.js basic (and only) configuration params:

module.exports = function(grunt) {

  'use strict';

  // Gruntfile.js config
  grunt.initConfig({

    // "grunt-single" config
    single: {
      production: {
        src  : 'tmp/index.single.html',
        dest : 'index.html'
      }
    }

  });

  grunt.loadNpmTasks('grunt-single');
  grunt.registerTask('default', ['single']);

};

Usage

$ grunt

Keywords

FAQs

Package last updated on 28 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc