Skip to content

Instantly share code, notes, and snippets.

@the-simian
Last active August 29, 2015 14:25
Show Gist options
  • Save the-simian/f15d64f71a5ec70e0f56 to your computer and use it in GitHub Desktop.
Save the-simian/f15d64f71a5ec70e0f56 to your computer and use it in GitHub Desktop.
var gulp = require('gulp');
var webpack = require('webpack');
var config = ('../../../webpack.config')
var config = {
///
};
function buildScripts(callback) {
function doneWebpack(err, stats) {
if(err) {
console.log('Error', err);
}
else {
console.log(stats.toString());
}
callback();
}
webpack(config)
.run(doneWebpack);
}
gulp.task('build-scripts', buildScripts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment