Cleaning up souremaps paths

This commit is contained in:
Jeff Avallone 2015-11-01 11:44:27 -05:00
parent e1bc209590
commit b099d13ad9

View File

@ -100,7 +100,7 @@ gulp.task('markup:svg_styles', false, function() {
}); });
gulp.task('styles', 'Build stylesheets into ./build directory.', 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(sourcemaps.init())
.pipe(sass({ .pipe(sass({
includePaths: bourbon.includePaths, includePaths: bourbon.includePaths,
@ -119,11 +119,10 @@ gulp.task('scripts', 'Build scripts into ./build directory', function() {
.add('./src/js/main.js') .add('./src/js/main.js')
.bundle() .bundle()
.on('error', notify.onError()) .on('error', notify.onError())
.pipe(source('./src/js/main.js')) .pipe(source('main.js'))
.pipe(buffer()) .pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true })) .pipe(sourcemaps.init({ loadMaps: true }))
.pipe(uglify()) .pipe(uglify())
.pipe(rename({ dirname: '' }))
.pipe(sourcemaps.write('.')) .pipe(sourcemaps.write('.'))
.pipe(gulp.dest(config.buildPath('js'))); .pipe(gulp.dest(config.buildPath('js')));
}); });