Skip to content
This repository was archived by the owner on Jan 17, 2022. It is now read-only.

Commit 954229d

Browse files
committed
Create a source map for minified JS code.
1 parent e5df025 commit 954229d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Gruntfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module.exports = function(grunt) {
2222
pkg: grunt.file.readJSON('package.json'),
2323
uglify: {
2424
options: {
25-
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n'
25+
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n',
26+
sourceMap: true
2627
},
2728
build: {
2829
src: 'src/angular-intro.js',
@@ -54,7 +55,7 @@ module.exports = function(grunt) {
5455

5556
// Default task(s).
5657
grunt.registerTask('default', ['jshint', 'uglify']);
57-
58+
5859
// Test
5960
grunt.registerTask('test', ['jshint']);
6061
};

0 commit comments

Comments
 (0)