Skip to content

Commit

Permalink
Convert css files to sass and refactor code Seneca-CDOT#61
Browse files Browse the repository at this point in the history
* It uses Gulp for processing Node Sass
* I've split the headings into partials, and call them in app.scss which is output to css/app.css
* You need to run `gulp sass` for it to compile
  • Loading branch information
Caroline Hagan committed May 6, 2020
1 parent 842bced commit 569b963
Show file tree
Hide file tree
Showing 19 changed files with 1,510 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dashboard/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

var gulp = require('gulp');
var sass = require('gulp-sass');

sass.compiler = require('node-sass');

gulp.task('sass', function () {
return gulp.src('src/sass/**/*.scss')
.pipe(sass.sync().on('error', sass.logError))
.pipe(gulp.dest('src/css'));
});

gulp.task('sass:watch', function () {
gulp.watch('src/sass/**/*.scss', ['sass']);
});
Loading

0 comments on commit 569b963

Please sign in to comment.