Skip to content

Instantly share code, notes, and snippets.

@cqfd
Created July 2, 2015 00:17
Show Gist options
  • Save cqfd/5819e3f437d731bed60b to your computer and use it in GitHub Desktop.
Save cqfd/5819e3f437d731bed60b to your computer and use it in GitHub Desktop.
var path = require('path');
var webpack = require('webpack');
var config = module.exports = {
context: __dirname,
entry: './index.js',
output: {
path: path.join(__dirname, 'build'),
filename: 'index.js'
},
target: 'node',
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
blacklist: ['regenerator', 'runtime']
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment