mirror of
https://github.com/google/material-design-lite.git
synced 2024-09-11 12:25:38 +03:00
Explicitly use absolute path for gulp task "style:gen"
- change to __dirname since "./" means relative to current working directory (Closes #1213)
This commit is contained in:
parent
8e7ee50b92
commit
14ac582a52
@ -707,10 +707,11 @@ gulp.task('templates', ['templates:static', 'templates:images', 'templates:mdl',
|
||||
|
||||
gulp.task('styles:gen', ['styles'], function() {
|
||||
var MaterialCustomizer = require('./docs/_assets/customizer.js');
|
||||
var templatePath = path.join(__dirname, 'dist', 'material.min.css.template');
|
||||
// TODO: This task needs refactoring once we turn MaterialCustomizer
|
||||
// into a proper Node module.
|
||||
var mc = new MaterialCustomizer();
|
||||
mc.template = fs.readFileSync('./dist/material.min.css.template').toString();
|
||||
mc.template = fs.readFileSync(templatePath).toString();
|
||||
|
||||
var stream = gulp.src('');
|
||||
mc.paletteIndices.forEach(function(primary) {
|
||||
|
Loading…
Reference in New Issue
Block a user