Postcss: PostCSS reduces SourceMap

Created on 29 Apr 2016  路  10Comments  路  Source: postcss/postcss

Hi Andrey,

The autoprefixer/postcss turned out to output reduced sourceMap, i.e. it reduces the amount information in the initial sourcemap. The example repo is here: aslushnikov/autoprefixer-breaks-sourcemap

SourceMap without autoprefixer: sourceMap - notice how red sass variable is mapped to css property value.
SourceMap with autoprefixer: sourceMap - notice how mapping is done property-wise.

Could this be fixed?

refactoring

Most helpful comment

Great to hear! We're shipping some awesome sass editing features in devtools and will be excited to demonstrate it working with autoprefixer in the pipeline. :)

cheers

All 10 comments

It will be fixed when we will tokenize values and selectors in 6.0.

Great, thanks!
cc @paulirish who is interested in this as well.

Great to hear! We're shipping some awesome sass editing features in devtools and will be excited to demonstrate it working with autoprefixer in the pipeline. :)

cheers

@paulirish Will you be publishing how Less can be integrated into devtools editing?

@matthew-dean perhaps! can you hook me up with a small less app with a watch task that I can try out?

@paulirish You mean like: https://getcrunch.co/, the best Less & Sass editor/compiler app of all time in the history of human civilization? ... I might be biased. 馃憖

@matthew-dean I think he means a small website/app with styles written in less and a watch task in place via npm-scripts/grunt/gulp.

Chrome 53:

image


image

Any news?

@mischnic no news. We need very big refactoring which will bring only few features. This is why it is hard to find somebody to do this refactoring.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexander-akait picture alexander-akait  路  3Comments

AdeSupriyadi picture AdeSupriyadi  路  3Comments

OEvgeny picture OEvgeny  路  9Comments

manulitopetito picture manulitopetito  路  12Comments

sydneyitguy picture sydneyitguy  路  5Comments