Skip to content

Commit

Permalink
Keep the possibility to merge css an js files with scss and coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Feb 1, 2016
1 parent 7819f77 commit 73219f0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions yeoman/Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ module.exports = (grunt) ->
'<%= yeoman.dist %>/*'
]
server: '.tmp'
aftercopy: [
'<%= yeoman.dist %>/*.html'
'<%= yeoman.dist %>/styles'
]
aftercopy: '<%= yeoman.dist %>/*.html'
jshint:
options:
jshintrc: '.jshintrc'
Expand Down Expand Up @@ -173,7 +170,10 @@ module.exports = (grunt) ->
wrap: true
uglify:
dist:
files: '<%= yeoman.dist %>/main.js': [ '.tmp/scripts/main.js' ]
files: '<%= yeoman.dist %>/main.js': [
'<%= yeoman.app %>/scripts/{,*/}*.js'
'.tmp/scripts/main.js'
]
useminPrepare:
html: '<%= yeoman.app %>/index.html'
options: dest: '<%= yeoman.dist %>'
Expand All @@ -192,7 +192,10 @@ module.exports = (grunt) ->
} ]
cssmin:
dist:
files: '<%= yeoman.dist %>/main.css': '.tmp/styles/main.css'
files: '<%= yeoman.dist %>/main.css': [
'<%= yeoman.app %>/styles/{,*/}*.css'
'.tmp/styles/main.css'
]
htmlmin:
dist:
options: {}
Expand Down Expand Up @@ -309,7 +312,7 @@ module.exports = (grunt) ->
'imagemin'
'htmlmin'
'concat'
'cssmin'
'cssmin:dist'
'requirejs'
'uglify'
'copy:dist'
Expand Down

0 comments on commit 73219f0

Please sign in to comment.