mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-30 06:11:09 +02:00
[refactor] remove initial background module as it could load after main code and remove styles
This commit is contained in:
16
gulpfile.js
16
gulpfile.js
@ -154,10 +154,6 @@ const build = {
|
|||||||
.pipe(dest(path.build + '/js', {
|
.pipe(dest(path.build + '/js', {
|
||||||
sourcemaps: '.'
|
sourcemaps: '.'
|
||||||
}))
|
}))
|
||||||
},
|
|
||||||
initialBackground: function() {
|
|
||||||
return src(path.src + '/js/initial-background.js')
|
|
||||||
.pipe(dest(path.build + '/js'))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,16 +209,8 @@ const dev = {
|
|||||||
return src(jsFiles)
|
return src(jsFiles)
|
||||||
.pipe(dest(path.dev + '/js'))
|
.pipe(dest(path.dev + '/js'))
|
||||||
})
|
})
|
||||||
},
|
|
||||||
initialBackground: function() {
|
|
||||||
watch(path.src + '/js/initial-background.js', {
|
|
||||||
ignoreInitial: false
|
|
||||||
}, function() {
|
|
||||||
return src(path.src + '/js/initial-background.js')
|
|
||||||
.pipe(dest(path.dev + '/js'))
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.dev = parallel(dev.manifest, dev.html, dev.fonts, dev.icons, dev.css, dev.js, dev.initialBackground)
|
exports.dev = parallel(dev.manifest, dev.html, dev.fonts, dev.icons, dev.css, dev.js)
|
||||||
exports.build = parallel(build.manifest, build.html, build.fonts, build.icons, build.css, build.js, build.initialBackground)
|
exports.build = parallel(build.manifest, build.html, build.fonts, build.icons, build.css, build.js)
|
||||||
|
Reference in New Issue
Block a user