Commit 921445c4 authored by Nikolay Gromov's avatar Nikolay Gromov

Завершил переход на gulp 4

parent 98efe4fb
...@@ -507,7 +507,7 @@ gulp.task('serve', gulp.series('build', function() { ...@@ -507,7 +507,7 @@ gulp.task('serve', gulp.series('build', function() {
browserSync.init({ browserSync.init({
server: dirs.buildPath, server: dirs.buildPath,
port: port, port: 8080,
startPath: 'index.html', startPath: 'index.html',
open: false, open: false,
}); });
...@@ -580,7 +580,7 @@ function getFilesList(config){ ...@@ -580,7 +580,7 @@ function getFilesList(config){
// Разметка (Pug) // Разметка (Pug)
if(fileExist(blockPath + blockName + '.pug')){ if(fileExist(blockPath + blockName + '.pug')){
res.pug.push(blockPath + blockName + '.pug'); res.pug.push('../' + config.dirs.blocksDirName + '/' + blockName + '/' + blockName + '.pug');
} }
else { else {
console.log('---------- Блок ' + blockName + ' указан как используемый, но не имеет pug-файла.'); console.log('---------- Блок ' + blockName + ' указан как используемый, но не имеет pug-файла.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment