Skip to content

Commit

Permalink
fix getnikola/nikola#966 -- make sass work properly
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 30, 2014
1 parent d71f3d5 commit 6c42838
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions v7/sass/sass.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ def gen_tasks(self):
base_path = utils.get_theme_path(self.site.THEMES[0])
dst_dir = os.path.join(self.site.config['OUTPUT_FOLDER'], 'assets', 'css')
# Make everything depend on all sources, rough but enough
deps = glob.glob(os.path.join(
base_path,
self.sources_folder,
*("*{0}".format(ext) for ext in self.sources_ext)))
deps = []
for ext in self.sources_ext:
if os.path.isfile(os.path.join(self.sources_folder, "targets")):
deps += glob.glob(os.path.join(kw['cache_folder'], self.sources_folder,
'*{0}'.format(ext)))
else:
deps += glob.glob(os.path.join(base_path, self.sources_folder,
'*{0}'.format(ext)))

def compile_target(target, dst):
utils.makedirs(dst_dir)
Expand Down

0 comments on commit 6c42838

Please sign in to comment.