New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SCSS source maps in debug mode #1667
Conversation
It is a simple change that is helping for legacy themes (themes that do not use a gulp or encore workflow) and only runs in dev mode, so +1 from my side. |
I‘m in favor of always having source maps. They don‘t harm, and they make the minified code readable. https://m.signalvnoise.com/paying-tribute-to-the-web-with-view-source/ |
I agree, unless there are no perfomance downsides. |
Is this a bugfix or a new feature? |
Sounds like a feature to me |
me, too. Although it would be nice to have in the current LTS |
@contao/developers I guess we could add this in Contao 4.9, couldn't we? @denniserdmann Can you please take care of the failing CI checks? |
IMO it’s a bugfix, source maps should have been activated ever since.
👍 |
@leofeyer tried my best, but i'm not sure how these checks are working. Changed the file, but error is still there. |
You should run |
What, if i don't have a local fork? ;-) Yes, I can install it, but i thought there would be an easier way, as made my propose „one the fly“. |
Correct formating would be like this:
|
Thank you @denniserdmann. |
The SCSS-Compiler has an option to generate Source Maps for generated CSS files, see https://scssphp.github.io/scssphp/docs/#source-maps
It would be nice to have Source Maps activated, when Contao Debug Mode is activated, too. A basic solution could be adding an inline source map, but there are also options to generate a separate file.
What do you think?