Sonarr/gulp/webpack.js

16 lines
518 B
JavaScript
Raw Normal View History

2015-02-03 01:18:45 +00:00
var gulp = require('gulp');
2015-08-11 17:44:05 +00:00
var webpackStream = require('webpack-stream');
2015-07-22 02:38:46 +00:00
var livereload = require('gulp-livereload');
2015-02-03 01:18:45 +00:00
var webpackConfig = require('../webpack.config');
webpackConfig.devtool = "#source-map";
gulp.task('webpack', function() {
2015-08-11 17:44:05 +00:00
return gulp.src('main.js').pipe(webpackStream(webpackConfig)).pipe(gulp.dest(''));
2015-02-03 01:18:45 +00:00
});
gulp.task('webpackWatch', function() {
2015-07-22 02:38:46 +00:00
webpackConfig.watch = true;
2015-08-11 17:44:05 +00:00
return gulp.src('main.js').pipe(webpackStream(webpackConfig)).pipe(gulp.dest('')).pipe(livereload());
2015-02-03 01:18:45 +00:00
});