hylia icon indicating copy to clipboard operation
hylia copied to clipboard

Sass sourcemaps

Open djmtype opened this issue 5 years ago • 3 comments

Is there anyway to see the sass sourcemap while in development via dev tools?

djmtype avatar Feb 09 '20 23:02 djmtype

I don't see why not!

Andy-set-studio avatar Feb 10 '20 11:02 Andy-set-studio

I have had a look into this.. the source maps are generated by default. I have been able to get sourcemap to work IF:

  • include the /*# sourceMappingURL=global.css.map */ just before .
  • copy the global.css.map into the dist folder.

The global.css file actually has the sourceMappingURL in it, however, the {% include "assets/css/global.css" %} does not include it..... or it gets taken out at some other stage...

Will continue to investigate...

JamesForan avatar Mar 18 '20 05:03 JamesForan

I think the best thing to get this working is to serve up the global.css output file in development and then inline it in production tbh.

Andy-set-studio avatar Mar 18 '20 10:03 Andy-set-studio