mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-04-21 04:52:14 +02:00
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` ... ```
This commit is contained in:
parent
c8a7f26229
commit
ba20abf0c3
@ -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'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user