You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which would just use all CSS files from the stream and it would not parse the template.
Currently I'm trying something like this which of course doesn't work:
gulp.task('templates',function(){varassets=useref.assets();returngulp.src('source/template/*.jade').pipe(jade())// Compile the templates to HTML.pipe(assets)// Find referenced stylesheets.pipe(assets.restore())// Restore HTML file.pipe(if('*.scss',sass()))// Compile SASS to CSS.pipe(if('*.html',inlineCss()))// Inline stylesheets.pipe(gulp.dest('public/'));// Write HTML files to destination});
Basically I want to get referenced SASS files from within the templates, compile them to CSS and apply them to the template using gulp-inline-css without creating temporary files.
Is there any way to do this right now? Would be nice to have this feature and use it as easy as possible!
The text was updated successfully, but these errors were encountered:
I'd love to use something like this:
Which would just use all CSS files from the stream and it would not parse the template.
Currently I'm trying something like this which of course doesn't work:
Basically I want to get referenced SASS files from within the templates, compile them to CSS and apply them to the template using gulp-inline-css without creating temporary files.
Is there any way to do this right now? Would be nice to have this feature and use it as easy as possible!
The text was updated successfully, but these errors were encountered: