Skip to content
Permalink
Browse files

update gulpfile.js

  • Loading branch information...
Bloggerschmidt committed May 3, 2019
1 parent 7207ed1 commit a8a518bc9bd4090631721f7b829849c5ca991da3
Showing with 1 addition and 8 deletions.
  1. +1 −8 gulpfile.js
@@ -1,21 +1,18 @@
// VARIABLES

const { watch, series, parallel, src, dest } = require('gulp');
const { watch, series, src, dest } = require('gulp');
const uglify = require('gulp-uglify');
const cleanCSS = require('gulp-clean-css');
const concat = require('gulp-concat');
const less = require('gulp-less');
const sass = require('gulp-sass');

// FILES

function getFiles() {
return src('node_modules/normalize.css/normalize.css')
.pipe(dest('css/'));
}

// JAVASCRIPT

function uglifyJavascript() {
return src([
'js/script.js'
@@ -26,7 +23,6 @@ function uglifyJavascript() {
}

// LESS

function compileLess() {
return src('css/template.less')
.pipe(less())
@@ -35,15 +31,13 @@ function compileLess() {


// SASS

function compileSass() {
return src('css/template.scss')
.pipe(sass())
.pipe(dest('css/'));
}

// CSS

function mergeCss() {
return src([
'css/normalize.css',
@@ -55,7 +49,6 @@ function mergeCss() {
}

// WATCHER

function watchFiles() {
watch('js/**/*.js', uglifyJavascript);
watch('css/**/*.less', compileLess);

0 comments on commit a8a518b

Please sign in to comment.
You can’t perform that action at this time.