Внутри папки Header создаем папки:
1) Phone
2) Cart
3) Logo
const browserSyncConfig = {
server: {
baseDir: "./dev/client",
middleware: [
function (req, res, next) { // Allow CORS
res.setHeader('Access-Control-Allow-Origin', '*');
next();
},
historyApiFallback() //for SPA application
]
},
host: 'localhost',
port: 3000,
notify: false,
};
gulp.task('js', function (done) {
gulp.src('entry file')
.pipe(webpackStream(args.production ? webpackDevConfig : webpackProdConfig, webpack))
.pipe(gulp.dest('dest path'));
done();
});