mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-29 17:30:09 +02:00
dynamic file mapping to avoid themes hardcoded in gruntfile
This commit is contained in:
22
Gruntfile.js
22
Gruntfile.js
@@ -36,19 +36,15 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
themes: {
|
||||
files: {
|
||||
'css/theme/black.css': 'css/theme/source/black.scss',
|
||||
'css/theme/white.css': 'css/theme/source/white.scss',
|
||||
'css/theme/league.css': 'css/theme/source/league.scss',
|
||||
'css/theme/beige.css': 'css/theme/source/beige.scss',
|
||||
'css/theme/night.css': 'css/theme/source/night.scss',
|
||||
'css/theme/serif.css': 'css/theme/source/serif.scss',
|
||||
'css/theme/simple.css': 'css/theme/source/simple.scss',
|
||||
'css/theme/sky.css': 'css/theme/source/sky.scss',
|
||||
'css/theme/moon.css': 'css/theme/source/moon.scss',
|
||||
'css/theme/solarized.css': 'css/theme/source/solarized.scss',
|
||||
'css/theme/blood.css': 'css/theme/source/blood.scss'
|
||||
}
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'css/theme/source',
|
||||
src: ['*.scss'],
|
||||
dest: 'css/theme',
|
||||
ext: '.css'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user