adding source maps

This commit is contained in:
Holger Könemann 2017-05-23 20:33:30 +02:00
parent 3e3e57df3c
commit 0c7e2c691d
4 changed files with 7 additions and 5 deletions

3
css/theme.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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:

View File

@ -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