Skip to content
A plugin for simple file minification by removing extra whitespaces, tabs and newline characters.
JavaScript HTML
Branch: master
Clone or download

Latest commit

soul-wish Merge pull request #1 from soul-wish/dependabot/npm_and_yarn/handleba…
…rs-4.5.3

Bump handlebars from 4.1.2 to 4.5.3
Latest commit ebf212d Jan 8, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tasks initial commit 🚀 Aug 19, 2019
test initial commit 🚀 Aug 19, 2019
.gitignore initial commit 🚀 Aug 19, 2019
.jshintrc initial commit 🚀 Aug 19, 2019
.travis.yml fix Travis configuration Aug 19, 2019
Gruntfile.js initial commit 🚀 Aug 19, 2019
LICENSE-MIT initial commit 🚀 Aug 19, 2019
README.md initial commit 🚀 Aug 19, 2019
package-lock.json Bump handlebars from 4.1.2 to 4.5.3 Dec 29, 2019
package.json initial commit 🚀 Aug 19, 2019

README.md

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

You can’t perform that action at this time.