Grunt creating wrong files

1

I'm using grunt-hogan , in Gruntfile these settings are.

"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 src file is internally the way I want it, but not with the js extension and name and location that I define, I want to compile template.html to mytemplate.js , as was clear in the code.

I also noticed that src comes with unnecessary information.

To use grunt-hogan to get more agile the development, because with the hogan only I would have to update the house to have the file generated in hand.

    
asked by anonymous 02.10.2017 / 17:06

0 answers