From ba20abf0c3bcc74822405cae2b58b64495eb379c Mon Sep 17 00:00:00 2001 From: t-fritsch Date: Thu, 3 Aug 2023 22:38:03 +0200 Subject: [PATCH] allow theme subfolders allows custom themes to import files from subfolders inside the `css/theme/source` folder. in `css/theme/source/custom-theme.scss` we can now do ```scss @import `custom-theme/controls` @import `custom-theme/headings` ... ``` --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6818e8b2..f70fe9f5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -164,7 +164,7 @@ function compileSass() { sass.render({ data: transformedFile.contents.toString(), - includePaths: ['css/', 'css/theme/template'] + file: transformedFile.path, }, ( err, result ) => { if( err ) { console.log( vinylFile.path ); @@ -305,7 +305,7 @@ gulp.task('serve', () => { gulp.watch(['plugin/**/plugin.js', 'plugin/**/*.html'], gulp.series('plugins', 'reload')) gulp.watch([ - 'css/theme/source/*.{sass,scss}', + 'css/theme/source/**/*.{sass,scss}', 'css/theme/template/*.{sass,scss}', ], gulp.series('css-themes', 'reload'))