Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging source maps #145

Open
irundaia opened this issue Sep 20, 2016 · 0 comments
Open

Merging source maps #145

irundaia opened this issue Sep 20, 2016 · 0 comments

Comments

@irundaia
Copy link
Contributor

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:

style.less  --less-->  less/style.css(.map)  --autoprefixer-->  autoprefixer/style.css(.map)

For the input style.less I'd like to get a Seq("less/style.css.map", "autoprefixer/style.css.map")

Is there any way of getting this information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant