javascript - Why won't my grunt task work - emailBuilder -
i trying run simple bare bones grunt task , not working. installed using npm install package:
{ "name": "ent-nmo-fasg-younger-mills-em-1", "version": "0.1.0", "devdependencies": { "grunt": "~0.4.5", "grunt-contrib-jshint": "~0.10.0", "grunt-contrib-nodeunit": "~0.4.1", "grunt-contrib-uglify": "~0.5.0", "grunt-email-builder": "^3.0.1" } }
then in gruntfile.js have added code:
module.exports = function(grunt) { grunt.initconfi({ pkg: grunt.file.readjson('package.json'), emailbuilder: { files : [{ expand: true, src: ['dev/*.html'], dest: 'dist/', }] } }); grunt.loadnpmtasks('grunt-email-builder'); grunt.registertask('dist',['emailbuilder']); };
the error getting in terminal after trying run "grunt dist" is:
loading "gruntfile.js" tasks...error
typeerror: undefined not function warning: task "dist" not found. used --force, continuing.
my problem simple spelling error in grunt configuration.
Comments
Post a Comment