Skip to content

c0rrupt/karma-twig-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

karma-twig-preprocessor

Usage:

In karma config define (for e.g. karma.conf.js):

preprocessors: {
    'src/**/*.twig': ['twig']
}

and can define options for preprocessor (if you need):

twigPreprocessor: {
    options: {
        twig: 'twig',
        module: 'amd'
    },
    filename: function(file) {
        return file.originalPath.replace(/\.twig$/, '.twig.js');
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published