gruntjs - Yeoman/Grunt clean:dist task property undefined -


i'm new grunt , having trouble clean:dist task grunt-contrib-clean. code task.

clean: {     dist: {         files: [{             dot: true,             src: [                 '.tmp',                 '<%= yeoman.dist %>/*',                 '!<%= yeoman.dist %>/.git*',                 '!<%= yeoman.dist %>/procfile',                 '!<%= yeoman.dist %>/package.json',                 '!<%= yeoman.dist %>/web.js',                 '!<%= yeoman.dist %>/node_modules'            ]         }]     },     server: '.tmp' }, 

when run grunt build following warning "an error occurred while processing template (cannot read property 'dist' of undefined). use --force continue." i'm thinking must syntax error or wrong plugin, don't know enough keep figure out.

for reason, changing <%= yeoman.dist %> <%= config.dist %> solves problem me. not sure when using yeoman.dist syntax appropriate, in case solved own problem. solutions is...

clean: {   dist: {     files: [{       dot: true,       src: [         '.tmp',         '<%= config.dist %>/*',         '!<%= config.dist %>/.git*',         '!<%= config.dist %>/procfile',         '!<%= config.dist %>/package.json',         '!<%= config.dist %>/web.js',         '!<%= config.dist %>/node_modules'       ]     }]   },   server: '.tmp' }, 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -