I'm currently attempting to configure Jade in a way that allows me to save my Jade files as HTML files while retaining the same file name.
For example, I would like the file views/index.jade
to be saved as dist/index.html
This should apply to all additional files as well.
My tool of choice is grunt-contrib-jade
The jade configuration in my Gruntfile looks like this:
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jade: {
compile: {
options: {
pretty: true
},
files: {
'dist/*.html': ['views/*.jade']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.registerTask('default', ['jade']);
};
Unfortunately, when I run it, the files are only being saved as *.html