Skip to content

Instantly share code, notes, and snippets.

@jacobp100
Created May 12, 2016 19:34
Show Gist options
  • Select an option

  • Save jacobp100/1d06c3616ae1a5722c07eb2478754123 to your computer and use it in GitHub Desktop.

Select an option

Save jacobp100/1d06c3616ae1a5722c07eb2478754123 to your computer and use it in GitHub Desktop.
import webpack from 'webpack';
gulp.task('compile-js', ['compile-css'], (cb) => (
webpack({
entry: './src/index',
output: {
path: './dist',
filename: 'index.js',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
},
],
},
}, err => {
cb(err);
})
));
gulp.task('default', ['compile-js']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment