Skip to content

Commit

Permalink
fix(app): only copy CSS if Compass is not installed
Browse files Browse the repository at this point in the history
If Compass is installed, then CSS files should not be copied
  • Loading branch information
eddiemonge committed Dec 6, 2013
1 parent a358c1a commit 7e58674
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions templates/common/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ module.exports = function (grunt) {
compass: {
files: ['<%%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer']
},<% } %>
},<% } else { %>
styles: {
files: ['<%%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['newer:copy:styles', 'autoprefixer']
},
},<% } %>
gruntfile: {
files: ['Gruntfile.js']
},
Expand Down Expand Up @@ -322,9 +322,7 @@ module.exports = function (grunt) {
expand: true,
cwd: '.tmp/images',
dest: '<%%= yeoman.dist %>/images',
src: [
'generated/*'
]
src: ['generated/*']
}]
},
styles: {
Expand All @@ -339,18 +337,18 @@ module.exports = function (grunt) {
concurrent: {
server: [<% if (coffee) { %>
'coffee:dist',<% } %><% if (compassBootstrap) { %>
'compass:server',<% } %>
'copy:styles'
'compass:server'<% } else { %>
'copy:styles'<% } %>
],
test: [<% if (coffee) { %>
'coffee',<% } %><% if (compassBootstrap) { %>
'compass',<% } %>
'copy:styles'
'compass'<% } else { %>
'copy:styles'<% } %>
],
dist: [<% if (coffee) { %>
'coffee',<% } %><% if (compassBootstrap) { %>
'compass:dist',<% } %>
'copy:styles',
'compass:dist',<% } else { %>
'copy:styles',<% } %>
'imagemin',
'svgmin',
'htmlmin'
Expand Down

0 comments on commit 7e58674

Please sign in to comment.