grunt-file-minify

1.0.0 • Public • Published

grunt-file-minify Build Status

A plugin for simple file minification by removing extra whitespaces, tabs and newline characters.

Getting Started

npm install grunt-file-minify --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-file-minify');

The "file_minify" task

Overview

In your project's Gruntfile, add a section named file_minify to the data object passed into grunt.initConfig().

grunt.initConfig({
  file_minify: {
    default: {
      files: {
        // Target-specific file lists and/or options go here.
        'dest/dir/': ['some/src/*.*', 'some/other/src/*.twig']
      }
    }
  }
});

License

MIT © Sergey Lysenko

Package Sidebar

Install

npm i grunt-file-minify

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

6.92 kB

Total Files

14

Last publish

Collaborators

  • soulwish