Skip to content

jstransformers/jstransformer-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jstransformer-webpack

Webpack support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-webpack

API

var webpack = require('jstransformer')(require('jstransformer-webpack'))

var options = {
  output: {
  	path: 'out',
  	filename: 'bundle.js'
  }
};
webpack.renderFileAsync('entry.js', options, function(err, data) {
  // out/bundle.js is now compiled.

  data.body
  //=> stats from http://webpack.github.io/docs/node.js-api.html
});

License

MIT