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 can have multiple steps that transform a source file. For instance, suppose that I use less to transform *.less files to *.css files and then use autoprefixer to transform those *.css files.
Both less and autoprefixer will output source maps, but in the end we only get the source map from the output of autoprefixer to the (intermediate) output of less rather than the original source file. As a developer, this complicates finding the source of a particular bug.
To remedy this, I was thinking about writing a plugin that is able to merge all source maps produced when pushing a source file through the assets pipeline. To do this, I'd need to know which source maps could be concatenated, i.e. a sequence of source maps generated for a particular input file.
I can have multiple steps that transform a source file. For instance, suppose that I use less to transform
*.less
files to*.css
files and then use autoprefixer to transform those*.css
files.Both less and autoprefixer will output source maps, but in the end we only get the source map from the output of autoprefixer to the (intermediate) output of less rather than the original source file. As a developer, this complicates finding the source of a particular bug.
To remedy this, I was thinking about writing a plugin that is able to merge all source maps produced when pushing a source file through the assets pipeline. To do this, I'd need to know which source maps could be concatenated, i.e. a sequence of source maps generated for a particular input file.
Ex:
For the input
style.less
I'd like to get aSeq("less/style.css.map", "autoprefixer/style.css.map")
Is there any way of getting this information?
The text was updated successfully, but these errors were encountered: