gulp compile task watching
This commit is contained in:
1 parent
c27f093e2e
commit
d3e6eb2659
1 file changed
+4
-1
+4
-1
@@ -69,13 +69,16 @@ gulp.task('copy robots.txt', () => {
|
||||
});
|
||||
|
||||
gulp.task('compile', () => {
|
||||
gulp.src([
|
||||
const doWatch = !isProduction;
|
||||
|
||||
return gulp.src([
|
||||
'./src/client/app.js',
|
||||
'./src/client/instagram.js'
|
||||
])
|
||||
.pipe(named())
|
||||
.pipe(webpack({
|
||||
// devtool: 'inline-source-map',
|
||||
watch: doWatch,
|
||||
output: {
|
||||
filename: '[name].js'
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user