Skip to content

Commit

Permalink
fix(gulp:styles): fix styles task for plain CSS
Browse files Browse the repository at this point in the history
closes #1747
  • Loading branch information
Awk34 committed Apr 21, 2016
1 parent 6e48189 commit dc72c33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/templates/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ let styles = lazypipe()
})<% } if(filters.sass) { %>
.pipe(plugins.sass)<% } if(filters.less) { %>
.pipe(plugins.less)<% } %>
<%_ if(filters.css) { _%>
.pipe(plugins.cleanCss, {processImportFrom: ['!fonts.googleapis.com']})<% } %>
.pipe(plugins.autoprefixer, {browsers: ['last 1 version']})
.pipe(plugins.sourcemaps.write, '.');<% if(filters.babel) { %>

Expand Down Expand Up @@ -295,7 +297,10 @@ gulp.task('tsd:test', cb => {
});<% } %>

gulp.task('styles', () => {
<%_ if(!filters.css) { _%>
return gulp.src(paths.client.mainStyle)
<%_ } else { _%>
return gulp.src(paths.client.styles)<% } %>
.pipe(styles())
.pipe(gulp.dest('.tmp/app'));
});<% if(filters.ts) { %>
Expand Down Expand Up @@ -581,8 +586,7 @@ gulp.task('build:client', ['transpile:client', 'styles', 'html', 'constant'], ()
.pipe(plugins.uglify())
.pipe(jsFilter.restore)
.pipe(cssFilter)
.pipe(plugins.minifyCss({
cache: true,
.pipe(plugins.cleanCss({
processImportFrom: ['!fonts.googleapis.com']
}))
.pipe(cssFilter.restore)
Expand Down

0 comments on commit dc72c33

Please sign in to comment.