Removed incorrect comments in Gulpfile.js.

This commit is contained in:
Daniel Stolt
2016-07-03 12:52:48 +02:00
parent 74011e659b
commit e04b12d177
2 changed files with 8 additions and 10 deletions
+7 -9
View File
@@ -140,11 +140,10 @@ function buildCssPipeline(assetGroup, doConcat, doRebuild) {
.pipe(gulpif(generateSourceMaps, sourcemaps.init())) .pipe(gulpif(generateSourceMaps, sourcemaps.init()))
.pipe(gulpif("*.less", less())) .pipe(gulpif("*.less", less()))
.pipe(gulpif("*.scss", sass({ .pipe(gulpif("*.scss", sass({
precision: 10 precision: 10
}))) })))
.pipe(gulpif(doConcat, concat(assetGroup.outputFileName))) .pipe(gulpif(doConcat, concat(assetGroup.outputFileName)))
.pipe(autoprefixer({ browsers: ["last 2 versions"] })) .pipe(autoprefixer({ browsers: ["last 2 versions"] }))
// TODO: Start using below whenever gulp-header supports sourcemaps.
.pipe(header( .pipe(header(
"/*\n" + "/*\n" +
"** NOTE: This file is generated by Gulp and should not be edited directly!\n" + "** NOTE: This file is generated by Gulp and should not be edited directly!\n" +
@@ -183,8 +182,7 @@ function buildJsPipeline(assetGroup, doConcat, doRebuild) {
noEmitOnError: true, noEmitOnError: true,
sortOutput: true, sortOutput: true,
}).js)) }).js))
.pipe(gulpif(doConcat, concat(assetGroup.outputFileName))) .pipe(gulpif(doConcat, concat(assetGroup.outputFileName)))
// TODO: Start using below whenever gulp-header supports sourcemaps.
.pipe(header( .pipe(header(
"/*\n" + "/*\n" +
"** NOTE: This file is generated by Gulp and should not be edited directly!\n" + "** NOTE: This file is generated by Gulp and should not be edited directly!\n" +
@@ -193,9 +191,9 @@ function buildJsPipeline(assetGroup, doConcat, doRebuild) {
"*/\n\n")) "*/\n\n"))
.pipe(gulpif(generateSourceMaps, sourcemaps.write())) .pipe(gulpif(generateSourceMaps, sourcemaps.write()))
.pipe(gulp.dest(assetGroup.outputDir)) .pipe(gulp.dest(assetGroup.outputDir))
.pipe(uglify()) .pipe(uglify())
.pipe(rename({ .pipe(rename({
suffix: ".min" suffix: ".min"
})) }))
.pipe(gulp.dest(assetGroup.outputDir)); .pipe(gulp.dest(assetGroup.outputDir));
} }
+1 -1
View File
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.24720.0 VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{E9C9F120-07BA-4DFB-B9C3-3AFB9D44C9D5}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{E9C9F120-07BA-4DFB-B9C3-3AFB9D44C9D5}"
EndProject EndProject