grunt-jquery-ready
v0.1.0
Published
Wraps final .js file into JQuery's .ready() function
Downloads
4
Readme
grunt-jquery-ready
ABOUT
If you use JQuery in your projects, then I'm sure you use $(document).ready(function(){}).
This grunt task will help you, wrapping your concatenated .js file into $(document).ready(function(){}).
USAGE
install
npm install grunt-jquery-ready --dev-save
config
grunt.initConfig({
'jquery-ready' : {
path: 'public/scrips.js',
runSync: false
}
grunt.loadNpmTasks('grunt-jquery-ready');
grunt.registerTask('default', "jquery-ready");
});
Options
- path - specify path to .js file that you want to have .ready() function
- runSync - If this task should be Run in synchronous way (default: true)
run
grunt