Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
fix race condition
Browse files Browse the repository at this point in the history
Only copy styles when Sass isnt used

Fixes #449
  • Loading branch information
eddiemonge committed Oct 31, 2014
1 parent ddbc163 commit 07bba17
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,14 @@ module.exports = function (grunt) {
} %>',
dest: '<%%= config.dist %>'
}<% } %>]
},
}<% if (!includeSass) { %>,
styles: {
expand: true,
dot: true,
cwd: '<%%= config.app %>/styles',
dest: '.tmp/styles/',
src: '{,*/}*.css'
}
}<% } %>
},<% if (includeModernizr) { %>

// Generates a custom Modernizr build that includes only the tests you
Expand All @@ -416,19 +416,19 @@ module.exports = function (grunt) {

// Run some tasks in parallel to speed up build process
concurrent: {
server: [<% if (includeSass) { %>
'sass:server',<% } if (coffee) { %>
'coffee:dist',<% } %>
'copy:styles'
server: [<% if (coffee) { %>
'coffee:dist'<% } %><% if (coffee && includeSass) { %>,<% } %><% if (includeSass) { %>
'sass:server'<% } else { %>
'copy:styles'<% } %>
],
test: [<% if (coffee) { %>
'coffee',<% } %>
'copy:styles'
'coffee',<% } %><% if (coffee && !includeSass) { %>,<% } %><% if (!includeSass) { %>
'copy:styles'<% } %>
],
dist: [<% if (coffee) { %>
'coffee',<% } if (includeSass) { %>
'sass',<% } %>
'copy:styles',
'coffee',<% } %><% if (includeSass) { %>
'sass',<% } else { %>
'copy:styles',<% } %>
'imagemin',
'svgmin'
]
Expand Down

0 comments on commit 07bba17

Please sign in to comment.