|
|
@ -20,15 +20,15 @@ function loadConfig() { |
|
|
|
function bsInit__local(done) { |
|
|
|
function bsInit__local(done) { |
|
|
|
browsersync.init({ |
|
|
|
browsersync.init({ |
|
|
|
logLevel: 'debug', |
|
|
|
logLevel: 'debug', |
|
|
|
//proxy: SITE.Local.Url,
|
|
|
|
proxy: SITE.Local.Url, |
|
|
|
proxy: 'https://roblib2023.lndo.site/' |
|
|
|
//proxy: 'https://d10_dev.lndo.site/',
|
|
|
|
}); |
|
|
|
}); |
|
|
|
done(); |
|
|
|
done(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function bsInit__remote(done) { |
|
|
|
function bsInit__remote(done) { |
|
|
|
browsersync.init({ |
|
|
|
browsersync.init({ |
|
|
|
//logLevel: 'debug',
|
|
|
|
logLevel: 'debug', |
|
|
|
proxy: SITE.Remote.Url, |
|
|
|
proxy: SITE.Remote.Url, |
|
|
|
serveStatic: ['.'], |
|
|
|
serveStatic: ['.'], |
|
|
|
files: PATHS.Watch, |
|
|
|
files: PATHS.Watch, |
|
|
@ -61,24 +61,22 @@ function drush() { |
|
|
|
// Compile CSS
|
|
|
|
// Compile CSS
|
|
|
|
function styles() { |
|
|
|
function styles() { |
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
return ( |
|
|
|
return gulp |
|
|
|
gulp |
|
|
|
//.src(PATHS.Scss.Dir + '/**/*.scss')
|
|
|
|
//.src(PATHS.Scss.Dir + '/**/*.scss')
|
|
|
|
.src('./css/sass/**/*.scss') |
|
|
|
.src('./css/sass/**/*.scss') |
|
|
|
.pipe(plumber()) |
|
|
|
.pipe(plumber()) |
|
|
|
.pipe(sourcemaps.init()) |
|
|
|
.pipe(sourcemaps.init()) |
|
|
|
.pipe( |
|
|
|
.pipe( |
|
|
|
sass |
|
|
|
sass |
|
|
|
.sync({ |
|
|
|
.sync({ |
|
|
|
includePaths: PATHS.Scss.Libraries |
|
|
|
includePaths: PATHS.Scss.Libraries |
|
|
|
}) |
|
|
|
}) |
|
|
|
.on('error', sass.logError) |
|
|
|
.on('error', sass.logError) |
|
|
|
) |
|
|
|
) |
|
|
|
.pipe(sourcemaps.write('.')) |
|
|
|
.pipe(sourcemaps.write('.')) |
|
|
|
//.pipe(gulp.dest(PATHS.Css.Dir))
|
|
|
|
//.pipe(gulp.dest(PATHS.Css.Dir))
|
|
|
|
.pipe(gulp.dest('./css')) |
|
|
|
.pipe(gulp.dest('./css')) |
|
|
|
.pipe(browsersync.stream()); |
|
|
|
.pipe(browsersync.stream()) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Watch Files
|
|
|
|
// Watch Files
|
|
|
|