1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-24 14:44:19 +01:00

improved build system

This commit is contained in:
Enrico Fasoli 2015-11-20 20:31:54 +01:00
parent d77c13f544
commit 640b14a519

View File

@ -15,16 +15,17 @@ var config = {
dest: 'webapp/dist/'
}
gulp.task('watch',function(){
gulp.task('watch',['clean'],function(){
var cfg = require('./webpack.config.js')
cfg.watch = true
cfg.devtool = 'eval'
return gulp.src(config.files.mainJs)
.pipe(webpack(cfg))
.pipe(gulp.dest(config.dest))
.pipe(connect.reload())
})
gulp.task('build',function(){
gulp.task('build',['clean'],function(){
return gulp.src(config.files.mainJs)
.pipe(webpack(require('./webpack.config.js')))
.pipe(gulp.dest(config.dest))