Grunt creating wrong files

Asked

Viewed 29 times

1

I’m using the grunt-hogan, in the Gruntfile is these definitions.

"use strict";

module.exports = function(grunt) {

var config;

config = {
    hogan: {
        tmp: 'template.html',
        output: 'js/tmp/mytemplate.js'
    },
    clean: {
      all: ['js/tmp', 'dest', 'src']
    }
};

grunt.initConfig(config);

grunt.loadNpmTasks('grunt-hogan');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.registerTask('default', ['clean', 'hogan']);

};

He is creating two files, "src" and "dest". The archive src stays internally as I want, but not with the extension js and name and location I define, I want to compile the template.html for mytemplate.js, as made clear in the code.

I also noticed that the src comes with unnecessary information.

I’m using the grunt-hogan to make development more agile, because with Hogan only I would have the home update to have the file generated at hand.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.