Skip to content

Commit ad6029a

Browse files
committed
Fix stylesheets sourcemap.
1 parent 8757542 commit ad6029a

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

gulpfile.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,16 @@ gulp.task('clean-stylesheets', function (cb) {
5656
});
5757

5858
gulp.task('build-stylesheets', function () {
59-
return gulp.src(
60-
[
61-
'sources/stylesheets/**/*.less'
62-
])
59+
return gulp.src('sources/stylesheets/tenside.less')
6360
.pipe(plumber())
6461
.pipe(sourcemaps.init())
65-
.pipe(less())
62+
.pipe(less({
63+
compress: true
64+
}))
6665
.pipe(autoprefixer({
6766
browsers: ['last 2 versions'],
6867
cascade: false
6968
}))
70-
.pipe(minifyCss())
71-
.pipe(concat('tenside.css'))
7269
.pipe(sourcemaps.write('.', {sourceRoot: '../sources/stylesheets'}))
7370
.pipe(gulp.dest('stylesheets'));
7471
});

stylesheets/tenside.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stylesheets/tenside.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)