Autoprefixer is causing problems with sourcemaps when imports are wrapped in a class
See original GitHub issueBasically if you have autoprefixer and imports that are wrapped by a class :
.random-class {
display: flex;
@import "box";
@import "inbox";
}
Instead of getting :
I am getting this :
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Problem with gulp-sass ? Or gulp-autoprefixer ? Or ... - GitHub
I think gulp-autoprefixer is making a correct sourcemap between it's input/output css files. gulp-sourcemaps and gulp-sass don't seem to be the issue either....
Read more >gulp-autoprefixer not working, gulp-sass output style,
Autoprefixer is causing problems with sourcemaps when imports are wrapped in a class #324. There is a conflict with gulp-sourcemaps and gulp-sass glob....
Read more >Autoprefixer is causing node-sass source map to point to the ...
For anyone who needs it I found a fix. Basically, postcss has an option to detect a previous source map and use it...
Read more >Getting started - Bootstrap
Bootstrap uses Autoprefixer to deal with CSS vendor prefixes. If you're compiling Bootstrap from its Less/Sass source and not using our Gruntfile, ...
Read more >Speeding Up Tailwind CSS Builds - nystudio107
TL;DR for Shawn is that we can split up our CSS into separately imported chunks, so that we're not processing the massive tailwindcss/utilities ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stephenbe you still need the other code, just remove the sourcemap part like:
@stephenbe Awesome!!! Thanks for posting your solution. In the above example, you can totally just use the built-in sourcemap support in gulp4 and it should work wonderfully. Check out the docs: https://gulpjs.com/docs/en/api/src#sourcemaps