grunt-header

Add a header to files

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
grunt-header
901.1.07 years ago9 years agoMinified + gzip package size for grunt-header in KB

Readme

grunt-header Build Status
Add a header to files

Install

$ npm install --save-dev grunt-header

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	info: 'header text',
	header: {
		dist: {
			options: {
				text: '<%= info %>'
			},
			files: {
				'dist/main.js': 'src/main.js'
			}
		}
	}
});

grunt.registerTask('default', ['header']);

Options

text

Type: string
Text to be prepended to files.

License

MIT © Sindre Sorhus