From 009dd69cbed0c14079402ce02f504c4cf87525a2 Mon Sep 17 00:00:00 2001 From: codecalm Date: Thu, 22 Feb 2018 20:28:53 +0100 Subject: [PATCH] gulp path fixes, header index.html url --- gulpfile.js | 14 +++++--------- src/_data/menu.yml | 2 +- src/_includes/header.html | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 03d713fd4..c341942f3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -5,7 +5,7 @@ var gulp = require('gulp'), autoprefixer = require('gulp-autoprefixer'); gulp.task('styles', function () { - return gulp.src('assets/scss/bundle.scss', { base: '.' }) + return gulp.src('src/assets/scss/bundle.scss', { base: '.' }) .pipe(sass({ precision: 8, outputStyle: 'expanded' @@ -15,11 +15,11 @@ gulp.task('styles', function () { cascade: false })) .pipe(rename('dashboard.css')) - .pipe(gulp.dest('assets/css/')); + .pipe(gulp.dest('src/assets/css/')); }); gulp.task('styles-plugins', function () { - return gulp.src('assets/plugins/**/plugin.scss', { base: '.' }) + return gulp.src('src/assets/plugins/**/plugin.scss', { base: '.' }) .pipe(sass({ precision: 6, outputStyle: 'expanded' @@ -31,16 +31,12 @@ gulp.task('styles-plugins', function () { .pipe(rename(function(path) { path.extname = '.css'; })) - .pipe(gulp.dest('.')) - .pipe(rename(function(path) { - path.extname = '.min.css'; - })) .pipe(gulp.dest('.')); }); gulp.task('watch', ['styles', 'styles-plugins'], function() { - gulp.watch('assets/scss/**/*.scss', ['styles']); - gulp.watch('assets/plugins/**/*.scss', ['styles-plugins']); + gulp.watch('src/assets/scss/**/*.scss', ['styles']); + gulp.watch('src/assets/plugins/**/*.scss', ['styles-plugins']); }); gulp.task('default', ['styles', 'styles-plugins']); \ No newline at end of file diff --git a/src/_data/menu.yml b/src/_data/menu.yml index 73ce68fa2..6528b4153 100644 --- a/src/_data/menu.yml +++ b/src/_data/menu.yml @@ -1,7 +1,7 @@ index: name: Home icon: fe fe-home - url: . + url: index.html interface: name: Interface diff --git a/src/_includes/header.html b/src/_includes/header.html index ed8e3fecd..b227371e1 100644 --- a/src/_includes/header.html +++ b/src/_includes/header.html @@ -2,7 +2,7 @@