From b099d13ad954ebcc4621fcf98569c25da918d7b6 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 1 Nov 2015 11:44:27 -0500 Subject: [PATCH] Cleaning up souremaps paths --- gulpfile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8471bad..ef6c0bd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -100,7 +100,7 @@ gulp.task('markup:svg_styles', false, function() { }); gulp.task('styles', 'Build stylesheets into ./build directory.', function() { - return gulp.src('./src/sass/main.scss') + return gulp.src('./src/sass/main.scss', { base: '.' }) .pipe(sourcemaps.init()) .pipe(sass({ includePaths: bourbon.includePaths, @@ -119,11 +119,10 @@ gulp.task('scripts', 'Build scripts into ./build directory', function() { .add('./src/js/main.js') .bundle() .on('error', notify.onError()) - .pipe(source('./src/js/main.js')) + .pipe(source('main.js')) .pipe(buffer()) .pipe(sourcemaps.init({ loadMaps: true })) .pipe(uglify()) - .pipe(rename({ dirname: '' })) .pipe(sourcemaps.write('.')) .pipe(gulp.dest(config.buildPath('js'))); });