0.2.0 • Published 8 years ago
jstransformer-webpack v0.2.0
jstransformer-webpack
Webpack support for JSTransformers.
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