Ok - I'm trying to configure less to spit out a sourcemap and correctly point to the accessible path of the less files. I can get the sourcemap to work properly, but the path it dumps into the sources array in the source map file are always incorrect. Nothing I do to the sourceMapBasepath or sourceMapRootpath properties change the sources array.
Here's the options config in the
options: {
paths: ['/app/content/less'],
yuicompress: true,
sourceMap: true,
sourceMapFilename: "WebUI/app/content/css/app.css.map",
sourceMapURL: "/app/content/css/app.css.map",
sourceMapBasepath: '/app/content/less',
sourceMapRootpath: '/'
},
files: {
"./WebUI/app/content/css/app.css": "./WebUI/app/content/less/app.less"
}
That always spits out a sources array that lists files with this folder structure:
/WebUI/app/content/less/filename.less
The WebUI folder is the webroot - I don't want that there. I've tried a million variations of what I show above and nothing I add to sourceMapBasepath or sourceMapRootpath makes a difference.
Any ideas? Thanks
My temporary fix is to output the source files in the source map - this is good enough, but still curious as to why I can't get the path to the less files to be correct.