gulp-usemin is generating and appending css sourcemap link tag to output html, but not doing for js. How do I stop it from appending the sourcemap tag?
Gulp task:
gulp.task('build', function () {
return gulp.src('templates/**')
.pipe(usemin({
css: [sourcemaps.init({ loadMaps: true }), 'concat', cleanCss(), rev(), sourcemaps.write('./')],
js: [sourcemaps.init({ loadMaps: true }), 'concat', uglify(), rev(), sourcemaps.write('./')]
}))
.pipe(gulp.dest('public'));
});
Source HTML:
<!-- build:css css/style.min.css -->
<link href="css/main.css" rel="stylesheet" media="screen">
<link href="css/style.css" rel="stylesheet" media="screen">
<!-- endbuild -->
<!-- build:js js/script.min.js -->
<script src="js/main.js"></script>
<script src="js/script.js"></script>
<!-- endbuild -->
And this is the result output. Notice the extra sourcemap css link tag, but there is no respective sourcemap script tag for JS maps. Why is so and how do I stop inserting sourcemap tag for css??
<link rel="stylesheet" href="css/style-cd92eb4ce7.min.css.map" media="screen"/>
<link rel="stylesheet" href="css/style-cd92eb4ce7.min.css" media="screen"/>
<script src="js/script-602bf332b2.min.js"></script>