Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
More improvements to file
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrehaut committed Jan 19, 2018
1 parent 36cd4f3 commit 5836d11
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const js = {
outputJSFileCompressed: './main.min.js',
outputJSFileLocation: './assets/js/dist',
};

// Main CSS Variables
// - - - - - - - - - - - - - - - - - -
const css = {
Expand All @@ -46,10 +47,17 @@ const css = {

// Autoprefixer Variables
// - - - - - - - - - - - - - - - - - -
var autoprefixerOptions = {
const autoprefixerOptions = {
browsers: ['last 25 versions']
};

// Media Variables
// - - - - - - - - - - - - - - - - - -
const media = {
imgs: 'assets/imgs',
icons: 'assets/icons'
}

/**
* @function scripts
* @description pipes our vendor JS files, main JS file out and minifies it
Expand Down Expand Up @@ -118,9 +126,9 @@ gulp.task('browser-sync', ['scripts', 'styles'], function () {
* @version v1
*/
gulp.task('imgs', function () {
gulp.src('assets/imgs/*')
gulp.src(media.imgs + '/*')
.pipe(imagemin())
.pipe(gulp.dest('assets/imgs'));
.pipe(gulp.dest(media.imgs));
});

/**
Expand All @@ -129,9 +137,9 @@ gulp.task('imgs', function () {
* @version v1
*/
gulp.task('svgstore', function () {
return gulp.src('assets/icons/*.svg')
return gulp.src(media.icons + '/*.svg')
.pipe(svgstore())
.pipe(gulp.dest('assets/icons'));
.pipe(gulp.dest(media.icons));
});

/**
Expand Down

0 comments on commit 5836d11

Please sign in to comment.