Skip to content

Commit

Permalink
Uglify files, remove unused grunt-htmlrefs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Aug 24, 2018
1 parent 852c865 commit e50b28f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
23 changes: 17 additions & 6 deletions Gruntfile.js
Expand Up @@ -340,10 +340,18 @@ module.exports = function (grunt) {
}
},

htmlrefs: {
// Uglify config for files compiled by Browserify
// Other files are uglified by grunt-usemin
uglify: {
dist: {
src: './<%= yeoman.tmp %>/views/front.html',
dest: './<%= yeoman.tmp %>/views/front.html'
files: [{
expand: true,
src: ['./<%= yeoman.tmp %>/js/*.js'],
dest: './<%= yeoman.tmp %>',
rename: function (dst, src) {
return src;
}
}]
}
}
});
Expand Down Expand Up @@ -396,18 +404,21 @@ module.exports = function (grunt) {
'karma'
]);

// WARNING
// grunt-usemin automatically creates subtasks for grunt-concat & grunt-uglify
// https://github.com/yeoman/grunt-usemin#tasks
grunt.registerTask('build', [
'clean:tmp',
'useminPrepare',
'concurrent:dist',
'autoprefixer',
'concat',
'concat:generated',
'ngAnnotate',
'copy:tmp',
'uglify',
'uglify:generated',
'uglify:dist',
'rev',
'usemin',
'htmlrefs:dist',
'copy:dist'
]);

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -63,7 +63,6 @@
"grunt-contrib-watch": "^1.0.0",
"grunt-env": "^0.4.4",
"grunt-express-server": "*",
"grunt-htmlrefs": "^0.5.0",
"grunt-karma": "~2.0.0",
"grunt-ng-annotate": "^3.0.0",
"grunt-node-inspector": "~0.4.2",
Expand Down

0 comments on commit e50b28f

Please sign in to comment.