karma-slim-preprocessor-with-binary-option

0.0.5 • Public • Published

karma-slim-preprocessor

Preprocessor for converting slim files to html templates.

It requires the slimrb binary to be on your path, which will be present if slim is installed by bundler.

npm install karma-slim-preprocessor --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.slim': ['slim']
    },
 
    files: [
      '**/*.js',
      '**/*.slim',
    ],
    slimPreprocessor: {
      // provide the location of a slimrb binary by uncommenting the next line.
      // slimrb: '/usr/local/bin/slimrb'
    }
  });
};

Package Sidebar

Install

npm i karma-slim-preprocessor-with-binary-option

Weekly Downloads

27

Version

0.0.5

License

MIT

Last publish

Collaborators

  • arkyark