tocss/scss: Improve SCSS project vs themes import resolution
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 31 Jul 2018 07:34:56 +0000 (09:34 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 31 Jul 2018 08:54:10 +0000 (10:54 +0200)
commitf219ac09f6b7e26d84599401512233d77c1bdb4c
treef644d0feebe52d88028cdaab8c1176d269231be3
parent786f72302f65580ca8d1df2132a7756584539ea0
tocss/scss: Improve SCSS project vs themes import resolution

Before this commit, only SASS/SCSS  components imported from main.scss at first level can be overwritten by homonymous files in projects or over-preceding theme components.

This commit fixes that by implementing a custom import resolver which will be tried first. This resolver will make sure that the project/theme hierarchy is always respected.

Fixes #5008
hugolib/resource_chain_test.go
resource/tocss/scss/tocss.go