Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Allow configurable less and scss import paths #7646

Open
wants to merge 2 commits into
base: 3.5
Choose a base branch
from

Conversation

grusch-it
Copy link

In some cases it would be helpful to be able to add additional import paths for especially sass.

Using configurable import paths it would be possible to use e.g. zurbs foundation libsass template out of the box. Currently you have to manually change all imports for all the foundation components to relative ones, which is quite annoying at the moment.

With this solution anyone could add import paths using the initconfig.php.

@leofeyer leofeyer added this to the 3.5.0 milestone Feb 19, 2015
@leofeyer
Copy link
Member

I wonder if the template can be complied with SASS 0.12?

@grusch-it
Copy link
Author

All foundation components do compile without any errors using leafo/scssphp which is used by Contao (tested many times with 3.3.3 and 3.3.4).

@leofeyer leofeyer modified the milestones: 3.5.0, 4.1.0 Apr 30, 2015
@leofeyer
Copy link
Member

leofeyer commented Oct 8, 2015

So, am I getting this right: to use the libsass template, you have to adjust two @import directives, but you prefer to adjust the initconfig.php file instead and add an import path to a global array, which is then added to the parser?

@grusch-it
Copy link
Author

Exactly. It's just nice to have and would make things a little bit easier.

@leofeyer leofeyer modified the milestones: 4.x.x, 4.1.0 Nov 10, 2015
@leofeyer leofeyer closed this Mar 21, 2016
@leofeyer leofeyer reopened this Mar 21, 2016
@leofeyer leofeyer modified the milestone: 4.x.x Apr 15, 2016
@leofeyer leofeyer closed this Jan 15, 2018
@leofeyer leofeyer changed the base branch from develop to 3.5 January 15, 2018 15:26
@leofeyer leofeyer reopened this Jan 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants