grunt-file-minify
v1.0.0
Published
A plugin for simple file minification by removing extra whitespaces, tabs and newline characters.
Downloads
5
Maintainers
Readme
grunt-file-minify
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