Skip to content
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

Bugfix: Keep import path and context for plugin's scss imports #2250

Merged
merged 1 commit into from Apr 11, 2014

Conversation

gnunicorn
Copy link
Contributor

Instead of concatenating all files into one gigantic file reuse the importer by creating an intermediate "scss" containing only the @import-statements to all plugin styles. Which then triggers a recursive call to load each individual one of them with the appropriate relative paths still in tact.

Fixes https://meta.discourse.org/t/uses-of-scss-in-plugins/14644

 - instead of concating all files into one gigantic file reuse the importer
 - and that way keep the context for relative paths in plugin scss
@discoursebot
Copy link

You've signed the CLA, ligthyear. Thank you! This pull request is ready for review.

@SamSaffron
Copy link
Member

Thanks, lets try this out. sprockets is very voodoo

SamSaffron added a commit that referenced this pull request Apr 11, 2014
Bugfix: Keep import path and context for plugin's scss imports
@SamSaffron SamSaffron merged commit 8d3c7b8 into discourse:master Apr 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants