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 del = require('del');
|
||||
var cleanCSS = require('gulp-clean-css');
|
||||
var gulpSequence = require('gulp-sequence')
|
||||
var gulpSequence = require('gulp-sequence');
|
||||
|
||||
|
||||
// Run:
|
||||
|
@ -155,6 +155,7 @@ gulp.task('cssnano', function(){
|
|||
|
||||
gulp.task('minify-css', function() {
|
||||
return gulp.src('./css/theme.css')
|
||||
.pipe(sourcemaps.init({loadMaps: true}))
|
||||
.pipe(cleanCSS({compatibility: '*'}))
|
||||
.pipe(plumber({
|
||||
errorHandler: function (err) {
|
||||
|
@ -163,6 +164,7 @@ gulp.task('minify-css', function() {
|
|||
}
|
||||
}))
|
||||
.pipe(rename({suffix: '.min'}))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest('./css/'));
|
||||
});
|
||||
|
||||
|
@ -186,7 +188,7 @@ gulp.task('browser-sync', function() {
|
|||
// Run:
|
||||
// gulp watch-bs
|
||||
// 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:
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
@import "assets/font-awesome"; // <------- Font Awesome Icon font
|
||||
@import "assets/underscores"; // <------- Underscores media styles
|
||||
|
||||
|
||||
// Any additional imported files //
|
||||
@import "theme/theme"; // <--------- Thats where you can add your own design. Thats your part!
|
||||
@import "theme/contact-form7"; // contact form 7 - Bootatrap 4 support
|
||||
|
|
Reference in New Issue