Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
build: generate source maps for JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Sep 18, 2015
1 parent 56bc514 commit ed0b058
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,25 @@ module.exports = function(grunt) {
}
},

// JS minification
uglify: {
options: {
sourceMap: true,
sourceMapIncludeSources: true
}
},

// Rename files for browser caching purposes
rev: {
filerev: {
dist: {
files: {
files: [{
src: [
'dist/public/scripts/{,*/}*.js',
'dist/public/styles/*.css',
'dist/public/fonts/*.{ttf,otf,woff,eot,svg}',
'dist/public/images/{,*/,*/*/}*.*'
]
}
}]
}
},

Expand Down Expand Up @@ -472,7 +480,7 @@ module.exports = function(grunt) {
'concat',
'cssmin',
'uglify',
'rev',
'filerev',
'usemin'
]);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"grunt-newer": "~1.1.1",
"grunt-ng-annotate": "~1.0.1",
"grunt-nodemon": "~0.4.0",
"grunt-rev": "~0.1.0",
"grunt-filerev": "~2.3.1",
"grunt-svgmin": "~2.0.1",
"grunt-template": "~0.2.3",
"grunt-usemin": "~3.0.0",
Expand Down

0 comments on commit ed0b058

Please sign in to comment.