1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-11 05:42:22 +04:00

gulp path fixes, header index.html url

This commit is contained in:
codecalm
2018-02-22 20:28:53 +01:00
parent 4ac40499c7
commit 009dd69cbe
3 changed files with 7 additions and 11 deletions
+5 -9
View File
@@ -5,7 +5,7 @@ var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'); autoprefixer = require('gulp-autoprefixer');
gulp.task('styles', function () { gulp.task('styles', function () {
return gulp.src('assets/scss/bundle.scss', { base: '.' }) return gulp.src('src/assets/scss/bundle.scss', { base: '.' })
.pipe(sass({ .pipe(sass({
precision: 8, precision: 8,
outputStyle: 'expanded' outputStyle: 'expanded'
@@ -15,11 +15,11 @@ gulp.task('styles', function () {
cascade: false cascade: false
})) }))
.pipe(rename('dashboard.css')) .pipe(rename('dashboard.css'))
.pipe(gulp.dest('assets/css/')); .pipe(gulp.dest('src/assets/css/'));
}); });
gulp.task('styles-plugins', function () { gulp.task('styles-plugins', function () {
return gulp.src('assets/plugins/**/plugin.scss', { base: '.' }) return gulp.src('src/assets/plugins/**/plugin.scss', { base: '.' })
.pipe(sass({ .pipe(sass({
precision: 6, precision: 6,
outputStyle: 'expanded' outputStyle: 'expanded'
@@ -31,16 +31,12 @@ gulp.task('styles-plugins', function () {
.pipe(rename(function(path) { .pipe(rename(function(path) {
path.extname = '.css'; path.extname = '.css';
})) }))
.pipe(gulp.dest('.'))
.pipe(rename(function(path) {
path.extname = '.min.css';
}))
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
}); });
gulp.task('watch', ['styles', 'styles-plugins'], function() { gulp.task('watch', ['styles', 'styles-plugins'], function() {
gulp.watch('assets/scss/**/*.scss', ['styles']); gulp.watch('src/assets/scss/**/*.scss', ['styles']);
gulp.watch('assets/plugins/**/*.scss', ['styles-plugins']); gulp.watch('src/assets/plugins/**/*.scss', ['styles-plugins']);
}); });
gulp.task('default', ['styles', 'styles-plugins']); gulp.task('default', ['styles', 'styles-plugins']);
+1 -1
View File
@@ -1,7 +1,7 @@
index: index:
name: Home name: Home
icon: fe fe-home icon: fe fe-home
url: . url: index.html
interface: interface:
name: Interface name: Interface
+1 -1
View File
@@ -2,7 +2,7 @@
<div class="header"> <div class="header">
<div class="container"> <div class="container">
<div class="navbar p-0"> <div class="navbar p-0">
<a class="navbar-brand" href="#"> <a class="navbar-brand" href="{{ site.base }}/index.html">
<img src="{{ site.base }}/assets/images/logo.svg" class="navbar-brand-img" alt="tabler.io"> <img src="{{ site.base }}/assets/images/logo.svg" class="navbar-brand-img" alt="tabler.io">
<span class="d-none d-lg-inline-block">tabler</span> <span class="d-none d-lg-inline-block">tabler</span>
</a> </a>