Styles
styles.less
@import "one.less";
@import "two.less";
one.less
body { background:red; }
two.less
body { font-size: 12px; }
Gulpfile.js
var gulp = require('gulp');
var less = require('gulp-less');
var sourcemaps = require('gulp-sourcemaps');
gulp.src('./src/assets/less/styles.less')
.pipe(less())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./dist/css/'));
result: styles.css + styles.map.css are created but the map file doesn't load when i enter the web page (and also when i inspect "body" i see styles.css)
Links
gulp less - https://github.com/plus3network/gulp-less
gulp-sourcemaps - https://github.com/floridoo/gulp-sourcemaps
I'm so frustrated, i'd appreciate any help. thanks.