Skip to content

dimitripaul/karma-html2commonjs-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-html2commonjs-preprocessor

Preprocessor for converting HTML files into CommonJS modules.

Karma configuration example

module.exports = function(config) {
    config.set({
        basePath: '',
        frameworks: [
            'jasmine',
            'commonjs'
        ],
        files: [
            '*.js',
            '*.html'
        ],
        preprocessors: {
            '*.html': ['html2commonjs', 'commonjs'],
            '*.js': ['commonjs']
        },
        autoWatch: true,
        browsers: ['Chrome'],
        singleRun: true,
        plugins: [
            'karma-jasmine',
            'karma-chrome-launcher',
            'karma-commonjs',
            'karma-html2commonjs-preprocessor'
        ]
    });
};

About

Preprocessor for converting HTML files into CommonJS modules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published