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
I disabled the rewriting of the source map in less-loader in the less.render callback. This allowed me to get some directory structure and for Chrome to differentiate between 'buttons.less' and 'mixins/buttons.less':
Unfortunately this is still not an absolute path. Less produces an absolute path in its sourcemaps. I've managed to track down that module is a string in ModuleFilenameHelpers.createFilename and so this information is not available.
The text was updated successfully, but these errors were encountered:
I am trying to get the absolute path to
@import
ed less files to display in my sourcemap.There is a config parameter output.devtoolmodulefilenametemplate to control this but it doesn't work for less files. It does for JS files.
I've been trying to debug this myself and for convenience I'm using this in my webpack config file:
I disabled the rewriting of the source map in less-loader in the
less.render
callback. This allowed me to get some directory structure and for Chrome to differentiate between 'buttons.less' and 'mixins/buttons.less':Unfortunately this is still not an absolute path. Less produces an absolute path in its sourcemaps. I've managed to track down that
module
is a string inModuleFilenameHelpers.createFilename
and so this information is not available.The text was updated successfully, but these errors were encountered: