parent
809c8a7f37
commit
8090c853ba
@ -1,15 +1,15 @@
|
|||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
var gulpWebpack = require('webpack-stream');
|
var webpackStream = require('webpack-stream');
|
||||||
var livereload = require('gulp-livereload');
|
var livereload = require('gulp-livereload');
|
||||||
|
|
||||||
var webpackConfig = require('../webpack.config');
|
var webpackConfig = require('../webpack.config');
|
||||||
webpackConfig.devtool = "#source-map";
|
webpackConfig.devtool = "#source-map";
|
||||||
|
|
||||||
gulp.task('webpack', function() {
|
gulp.task('webpack', function() {
|
||||||
return gulp.src('main.js').pipe(gulpWebpack(webpackConfig)).pipe(gulp.dest(''));
|
return gulp.src('main.js').pipe(webpackStream(webpackConfig)).pipe(gulp.dest(''));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('webpackWatch', function() {
|
gulp.task('webpackWatch', function() {
|
||||||
webpackConfig.watch = true;
|
webpackConfig.watch = true;
|
||||||
return gulp.src('main.js').pipe(gulpWebpack(webpackConfig)).pipe(gulp.dest('')).pipe(livereload());
|
return gulp.src('main.js').pipe(webpackStream(webpackConfig)).pipe(gulp.dest('')).pipe(livereload());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in new issue