grunt-compiled-jade

compile jade template.

Usage no npm install needed!

<script type="module">
  import gruntCompiledJade from 'https://cdn.skypack.dev/grunt-compiled-jade';
</script>

README

grunt-compiled-jade

compile jade template.

install

% cd your/grunt/project/root
% npm install grunt-compiled-jade --save-dev

usage

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        compiled_jade: {
            dev: {
                template: '../views/partial/*.jade',
                dest: 'js/jade.js',
                runtime: 'node_modules/jade/runtime.js',
                prefix: 'template'
            }
        }
    });

    grunt.loadNpmTasks('grunt-compiled-jade');

    grunt.registerTask('default', ['compiled_jade:dev']);
};