1.0.0 • Published 5 years ago

grunt-file-minify v1.0.0

Weekly downloads
4
License
-
Repository
github
Last release
5 years ago

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