adding source maps
This commit is contained in:
parent
3e3e57df3c
commit
0c7e2c691d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -42,7 +42,7 @@ var sourcemaps = require('gulp-sourcemaps');
|
||||||
var browserSync = require('browser-sync').create();
|
var browserSync = require('browser-sync').create();
|
||||||
var del = require('del');
|
var del = require('del');
|
||||||
var cleanCSS = require('gulp-clean-css');
|
var cleanCSS = require('gulp-clean-css');
|
||||||
var gulpSequence = require('gulp-sequence')
|
var gulpSequence = require('gulp-sequence');
|
||||||
|
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
|
@ -155,6 +155,7 @@ gulp.task('cssnano', function(){
|
||||||
|
|
||||||
gulp.task('minify-css', function() {
|
gulp.task('minify-css', function() {
|
||||||
return gulp.src('./css/theme.css')
|
return gulp.src('./css/theme.css')
|
||||||
|
.pipe(sourcemaps.init({loadMaps: true}))
|
||||||
.pipe(cleanCSS({compatibility: '*'}))
|
.pipe(cleanCSS({compatibility: '*'}))
|
||||||
.pipe(plumber({
|
.pipe(plumber({
|
||||||
errorHandler: function (err) {
|
errorHandler: function (err) {
|
||||||
|
@ -163,6 +164,7 @@ gulp.task('minify-css', function() {
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.pipe(rename({suffix: '.min'}))
|
.pipe(rename({suffix: '.min'}))
|
||||||
|
.pipe(sourcemaps.write('./'))
|
||||||
.pipe(gulp.dest('./css/'));
|
.pipe(gulp.dest('./css/'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -186,7 +188,7 @@ gulp.task('browser-sync', function() {
|
||||||
// Run:
|
// Run:
|
||||||
// gulp watch-bs
|
// gulp watch-bs
|
||||||
// Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser
|
// Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser
|
||||||
gulp.task('watch-bs', ['browser-sync', 'watch', 'minify-css', 'scripts'], function () { });
|
gulp.task('watch-bs', ['browser-sync', 'watch', 'scripts'], function () { });
|
||||||
|
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
||||||
@import "assets/underscores"; // <------- Underscores media styles
|
@import "assets/underscores"; // <------- Underscores media styles
|
||||||
|
|
||||||
|
|
||||||
// Any additional imported files //
|
// Any additional imported files //
|
||||||
@import "theme/theme"; // <--------- Thats where you can add your own design. Thats your part!
|
@import "theme/theme"; // <--------- Thats where you can add your own design. Thats your part!
|
||||||
@import "theme/contact-form7"; // contact form 7 - Bootatrap 4 support
|
@import "theme/contact-form7"; // contact form 7 - Bootatrap 4 support
|
||||||
|
|
Reference in New Issue