Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Sass sourcemaps #100

Open
djmtype opened this issue Feb 9, 2020 · 3 comments
Open

Sass sourcemaps #100

djmtype opened this issue Feb 9, 2020 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@djmtype
Copy link

djmtype commented Feb 9, 2020

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

@Andy-set-studio
Copy link
Owner

I don't see why not!

@Andy-set-studio Andy-set-studio added enhancement New feature or request good first issue Good for newcomers labels Feb 10, 2020
@JamesForan
Copy link
Contributor

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 </style>.
  • 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...

@Andy-set-studio
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants