Custom Styling
custom-styles.less
@import "theme.less";
@import "layout.less";
theme.less
body { background:blue; }
layout.less
body { font-family: Arial, sans-serif; }
Build Process - Gulpfile.js
var gulp = require('gulp');
var less = require('gulp-less');
var sourcemaps = require('gulp-sourcemaps');
gulp.src('./src/assets/less/custom-styles.less')
.pipe(less())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./dist/css/'));
Issue: After compiling, styles.css + styles.map.css are generated but the map file fails to load on the webpage. In addition, when inspecting the page, only styles.css are visible.
Useful Tools
gulp less - https://github.com/plus3network/gulp-less
gulp-sourcemaps - https://github.com/floridoo/gulp-sourcemaps
Seeking assistance to resolve this frustrating issue. Any help would be greatly appreciated. Thank you.