1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/gulp/webpack.js

14 lines
478 B
JavaScript
Raw Normal View History

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