postcss/postcss-import

Importing files with sourceMappingURLs breaks inline sourcemaps

rbclark opened this issue · 1 comments

I am trying to use this package and am running into a small problem. The framework I am using (Ruby on Rails) works best when sourcemaps are inline. I currently have postcss configured to use inline sourcemaps, however as soon as I import a file with a /*# sourceMappingURL=dropzone.css.map */ declaration in it, for example:

@import "dropzone/dist/dropzone";

Then my postcss builds directory output goes from

application.css

to

application.css 
application.css.map

The application.css.map then has the following in it:

{"version":3,"sources":["../../../node_modules/dropzone/src/dropzone.scss",...

even though inline: true is set in postcss. This then causes all of my sourcemaps to be broken out into a separate file which completely breaks my ability to load them.

After doing some more research I think I've tracked down that this is actually a problem with the tailwind CLI: tailwindlabs/tailwindcss#7856. Sorry for the bother.