Skip to content

Commit

Permalink
Merge pull request #15 from weeezes/dev
Browse files Browse the repository at this point in the history
Correct usage of usemin when running grunt build
  • Loading branch information
sgmeyer committed May 7, 2014
2 parents ea2f15f + 506da0b commit c23d543
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
23 changes: 5 additions & 18 deletions app/templates/_Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,30 +130,18 @@ module.exports = function (grunt) {
}
}
},<% } %>
uglify: {
options: {
mangle: false
},
dist: {
files: {
'<%%= yeoman.dist %>/scripts/combined-scripts.min.js': ['<%%= yeoman.dist %>/scripts/combined-scripts.js']
}
}
},
rev: {
dist: {
files: {
src: [
'<%%= yeoman.dist %>/scripts/{,*/}*.js',
'<%%= yeoman.dist %>/styles/{,*/}*.css',
'<%%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}',
'<%%= yeoman.dist %>/styles/fonts/*'
'<%%= yeoman.dist %>/styles/{,*/}*.css'
]
}
}
},
useminPrepare: {
html: '.tmp/index.html',
html: '<%%= yeoman.app %>/index.html',
options: {
dest: '<%%= yeoman.dist %>'
}
Expand Down Expand Up @@ -220,9 +208,7 @@ module.exports = function (grunt) {
'*.{ico,txt}',
'.htaccess',
'images/{,*/}*.{webp,gif}',
'styles/fonts/*',
'libs/**',
'bower_components/**'
'styles/fonts/*'
]
}]
}
Expand Down Expand Up @@ -256,7 +242,7 @@ module.exports = function (grunt) {
}
},
src: '<%%= yeoman.app %>/scripts/app.js',
dest: '<%%= yeoman.dist %>/scripts/combined-scripts.js'
dest: '.tmp/scripts/combined-scripts.js'
},
}
});
Expand Down Expand Up @@ -294,6 +280,7 @@ module.exports = function (grunt) {
'useminPrepare',
'concurrent:dist',
'neuter:dist',
'concat',
'cssmin',
'uglify',
'copy',
Expand Down
3 changes: 2 additions & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-connect": "~0.5.0",
Expand All @@ -19,7 +20,7 @@
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-rev": "~0.1.0",
"grunt-usemin": "~0.1.12",
"grunt-usemin": "~2.1.1",
"grunt-open": "~0.2.0",
"grunt-svgmin": "~0.2.0",
"grunt-concurrent": "~0.3.0",
Expand Down

0 comments on commit c23d543

Please sign in to comment.