You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be related to #1740, but when I use the sourceMapBasepath option, it doesn't affect my sourceMap file in any way. I'm expecting to be able to change the public/css/app.less path in the beginning of the file when doing server-side preprocessing:
In my Gruntfile, I can set sourceMapBasepath to anything, say, qwerty, and upon re-running the Grunt task, and the sourceMap is identical to the previous run.
I'm wanting to change that .less path because the static content the webserver serves up lives in public, and my .less files are also in there, and that public directory is ending up in the sourceMap, but it's my webserver root and should not be mentioned.
Observe that app.less is a simple LESS file, and the Grunt task creates style.min.css and style.min.css.map. The CSS file points to the sourceMap thanks to the sourceMapURL option, but sourceMapBasepath didn't have any effect.
Am I missing something, or is this a bug?
The text was updated successfully, but these errors were encountered:
@commandtab Had a look into the less source code, the sourceMapBasepath works only when the sourceMap file path starts with sourceMapBasepath path.
Eg. sourceMapBasepath = 'src' will work only when the sourcemap sources start with 'src'
This might be related to #1740, but when I use the
sourceMapBasepath
option, it doesn't affect my sourceMap file in any way. I'm expecting to be able to change thepublic/css/app.less
path in the beginning of the file when doing server-side preprocessing:In my Gruntfile, I can set
sourceMapBasepath
to anything, say,qwerty
, and upon re-running the Grunt task, and the sourceMap is identical to the previous run.I'm wanting to change that .less path because the static content the webserver serves up lives in
public
, and my .less files are also in there, and thatpublic
directory is ending up in the sourceMap, but it's my webserver root and should not be mentioned.I created a minimal test case here:
http://static.command-tab.com/temp/someapp.zip
Run
npm install && grunt
to build it.Observe that
app.less
is a simple LESS file, and the Grunt task createsstyle.min.css
andstyle.min.css.map
. The CSS file points to the sourceMap thanks to thesourceMapURL
option, butsourceMapBasepath
didn't have any effect.Am I missing something, or is this a bug?
The text was updated successfully, but these errors were encountered: