mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-26 15:04:19 +01:00
improved build system
This commit is contained in:
parent
d77c13f544
commit
640b14a519
@ -15,16 +15,17 @@ var config = {
|
|||||||
dest: 'webapp/dist/'
|
dest: 'webapp/dist/'
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.task('watch',function(){
|
gulp.task('watch',['clean'],function(){
|
||||||
var cfg = require('./webpack.config.js')
|
var cfg = require('./webpack.config.js')
|
||||||
cfg.watch = true
|
cfg.watch = true
|
||||||
|
cfg.devtool = 'eval'
|
||||||
return gulp.src(config.files.mainJs)
|
return gulp.src(config.files.mainJs)
|
||||||
.pipe(webpack(cfg))
|
.pipe(webpack(cfg))
|
||||||
.pipe(gulp.dest(config.dest))
|
.pipe(gulp.dest(config.dest))
|
||||||
.pipe(connect.reload())
|
.pipe(connect.reload())
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('build',function(){
|
gulp.task('build',['clean'],function(){
|
||||||
return gulp.src(config.files.mainJs)
|
return gulp.src(config.files.mainJs)
|
||||||
.pipe(webpack(require('./webpack.config.js')))
|
.pipe(webpack(require('./webpack.config.js')))
|
||||||
.pipe(gulp.dest(config.dest))
|
.pipe(gulp.dest(config.dest))
|
||||||
|
Loading…
Reference in New Issue
Block a user