wallaby-ng-html2js-preprocessor
Wallaby.js preprocessor to compile AngularJS templates to JavaScript.
Configuration:
// wallaby.conf.jsmodule { return files: 'app/**/*.js' 'app/**/*.html' tests: 'tests/**/*.js' preprocessors: { return } }
How does it work ?
This preprocessor converts HTML files into JS strings and generates Angular modules. These modules, when loaded, puts these HTML files into the $templateCache and therefore Angular won't try to fetch them from the server.