gulp-sourcemaps: Autoprefixer is causing problems with sourcemaps when imports are wrapped in a class
Basically 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 :
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (2 by maintainers)
@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