aslushnikov / autoprefixer-breaks-sourcemap

A demo of autoprefixer breaking sourcemaps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

== Demo ==

The Autoprefixer turnes out to reduce sourceMap quality.

Steps to reproduce:

  1. Installation
git clone https://github.com/aslushnikov/autoprefixer-breaks-sourcemap
cd autoprefixer-breaks-sourcemap
npm install .
  1. Build style.scss with autoprefixer
gulp sass

output sourcemap

Notice, how the "red" sass variable is not mapped anywhere.

  1. Build style.scss without autoprefixer (via commenting out autoprefixer pipe in gulpfile.js)
gulp sass

output sourcemap

Notice, how "red" sass variable is now matched to CSS property value.

About

A demo of autoprefixer breaking sourcemaps.


Languages

Language:JavaScript 92.9%Language:CSS 7.1%