Commit 05b18476 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] make sourcemaps path configurable

parent f5d5b3fe
......@@ -43,7 +43,7 @@ function processCss() {
.pipe(plugins.sourcemaps.init())
.pipe(compilationProcess())
.on('error', plugins.sass.logError)
.pipe(plugins.sourcemaps.write('../SourceMaps'))
.pipe(plugins.sourcemaps.write(path.relative(settings.getPath() + '/' + config.directories.css, settings.getPath() + '/' + config.directories.cssSourceMaps)))
.pipe(filter)
.pipe(plugins.checkFilesize({
enableGzip: true
......@@ -98,7 +98,7 @@ gulp.task('css:abovethefold', function() {
.pipe(gulp.dest(config.abovethefold.dest));
});
gulp.task('css:qa', function(cb) {
gulp.task('css:qa', function() {
return gulp.src([settings.getPath() + '/' + config.directories.sass + '/**/*.scss', '!**/*scsslint_tmp*.scss'].concat(config.css.excludeFromQa))
.pipe(plugins.scssLint({
customReport: plugins.scssLintStylish
......
......@@ -6,6 +6,7 @@ module.exports = function() {
gulp = require('gulp'),
settings = require('../settings'),
config = settings.getConfig(),
path = require('path'),
eventStream = require('event-stream'),
babelify = require('babelify'),
rename = require('gulp-rename'),
......@@ -57,7 +58,7 @@ module.exports = function() {
.pipe(plugins.checkFilesize({
enableGzip: true
}))
.pipe(plugins.sourcemaps.write('../SourceMaps'))
.pipe(plugins.sourcemaps.write(path.relative(settings.getPath() + '/' + config.directories.javascriptDest, settings.getPath() + '/' + config.directories.javascriptSourceMaps)))
.pipe(gulp.dest(settings.getPath() + '/' + config.directories.javascriptDest));
}
});
......
......@@ -6,6 +6,7 @@ module.exports = function() {
gulp = require('gulp'),
settings = require('../settings'),
config = settings.getConfig(),
path = require('path'),
eventStream = require('event-stream'),
rename = require('gulp-rename'),
source = require('vinyl-source-stream'),
......@@ -55,7 +56,7 @@ module.exports = function() {
.pipe(plugins.checkFilesize({
enableGzip: true
}))
.pipe(plugins.sourcemaps.write('../SourceMaps'))
.pipe(plugins.sourcemaps.write(path.relative(settings.getPath() + '/' + config.directories.javascriptDest, settings.getPath() + '/' + config.directories.javascriptSourceMaps)))
.pipe(gulp.dest(settings.getPath() + '/' + config.directories.javascriptDest));
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment