mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-03 21:27:31 +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:
@@ -164,7 +164,7 @@ function compileSass() {
|
|||||||
|
|
||||||
sass.render({
|
sass.render({
|
||||||
data: transformedFile.contents.toString(),
|
data: transformedFile.contents.toString(),
|
||||||
includePaths: ['css/', 'css/theme/template']
|
file: transformedFile.path,
|
||||||
}, ( err, result ) => {
|
}, ( err, result ) => {
|
||||||
if( err ) {
|
if( err ) {
|
||||||
console.log( vinylFile.path );
|
console.log( vinylFile.path );
|
||||||
@@ -305,7 +305,7 @@ gulp.task('serve', () => {
|
|||||||
gulp.watch(['plugin/**/plugin.js', 'plugin/**/*.html'], gulp.series('plugins', 'reload'))
|
gulp.watch(['plugin/**/plugin.js', 'plugin/**/*.html'], gulp.series('plugins', 'reload'))
|
||||||
|
|
||||||
gulp.watch([
|
gulp.watch([
|
||||||
'css/theme/source/*.{sass,scss}',
|
'css/theme/source/**/*.{sass,scss}',
|
||||||
'css/theme/template/*.{sass,scss}',
|
'css/theme/template/*.{sass,scss}',
|
||||||
], gulp.series('css-themes', 'reload'))
|
], gulp.series('css-themes', 'reload'))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user