style(gulpfile): Remove object assign
This commit is contained in:
15
gulpfile.js
15
gulpfile.js
@@ -1,5 +1,4 @@
|
||||
// enable debug for gulp
|
||||
/* eslint-disable prefer-object-spread/prefer-object-spread */
|
||||
process.env.DEBUG = process.env.DEBUG || 'fcc:*';
|
||||
require('dotenv').load();
|
||||
|
||||
@@ -291,11 +290,10 @@ gulp.task('pack-client', function() {
|
||||
|
||||
return gulp.src(webpackConfig.entry.bundle)
|
||||
.pipe(plumber({ errorHandler }))
|
||||
.pipe(webpackStream(Object.assign(
|
||||
{},
|
||||
webpackConfig,
|
||||
webpackOptions
|
||||
)))
|
||||
.pipe(webpackStream({
|
||||
...webpackConfig,
|
||||
...webpackOptions
|
||||
}))
|
||||
.pipe(gulpif(condition, gutil.noop(), uglify()))
|
||||
.pipe(gulp.dest(dest));
|
||||
});
|
||||
@@ -412,9 +410,8 @@ gulp.task('js', function() {
|
||||
});
|
||||
|
||||
|
||||
function collector(file, memo) {
|
||||
return Object.assign({}, JSON.parse(file.contents), memo);
|
||||
}
|
||||
const collector = (file, memo) =>
|
||||
Object.assign(memo, JSON.parse(file.contents));
|
||||
|
||||
function done(manifest) {
|
||||
return sortKeys(manifest);
|
||||
|
Reference in New Issue
Block a user