Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit 82fa971

Browse files
committed
chore(grunt): Add source map files to build artifacts
1 parent 78f04f0 commit 82fa971

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

Gruntfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ module.exports = grunt => {
5555
banners: {
5656
unminified:
5757
`/*!
58-
* <%= pkg.prettyName %> v<%= pkg.version %>
59-
* <%= pkg.homepage %>
60-
*
61-
* Copyright (c) 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>
62-
* License: <%= pkg.license %>
63-
*
64-
* Generated at <%= grunt.template.today("yyyy-mm-dd HH:MM:ss o") %>
65-
*/`,
58+
* <%= pkg.prettyName %> v<%= pkg.version %>
59+
* <%= pkg.homepage %>
60+
*
61+
* Copyright (c) 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>
62+
* License: <%= pkg.license %>
63+
*
64+
* Generated at <%= grunt.template.today("yyyy-mm-dd HH:MM:ss o") %>
65+
*/`,
6666
minified: '/*! <%= pkg.prettyName %> v<%= pkg.version %> License: <%= pkg.license %> */'
6767
}
6868
};

grunt/options/compress.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
expand: true,
1212
src : [
1313
'<%= files.js.outMin %>',
14+
'<%= files.js.outMin %>.map',
1415
'<%= files.css.main.outMin %>',
1516
'<%= files.css.bootstrap.outMin %>'
1617
],
@@ -27,6 +28,7 @@ module.exports = {
2728
expand: true,
2829
src : [
2930
'<%= files.js.out %>',
31+
'<%= files.js.out %>.map',
3032
'<%= files.css.main.out %>',
3133
'<%= files.css.bootstrap.out %>'
3234
],
@@ -44,9 +46,10 @@ module.exports = {
4446
expand: true,
4547
src : [
4648
'<%= files.js.out %>',
49+
'<%= files.js.out %>.map',
4750
'<%= files.css.main.out %>',
4851
'<%= files.css.bootstrap.out %>',
49-
'<%= files.js.outMin %>',
52+
'<%= files.js.outMin %>.map',
5053
'<%= files.css.main.outMin %>',
5154
'<%= files.css.bootstrap.outMin %>',
5255
],

grunt/options/sass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module.exports = {
22
build: {
33
options: {
44
style: 'expanded',
5-
noCache: true
5+
noCache: true,
6+
sourcemap: 'none'
67
},
78
files: {
89
'<%= files.css.main.out %>': ['<%= files.css.main.src %>'],

grunt/options/uglify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module.exports = {
22
build: {
33
options: {
4-
banner: '<%= banners.minified %>'
4+
banner: '<%= banners.minified %>',
5+
sourceMap: true,
56
},
67
files: {
78
'<%= files.js.outMin %>': ['<%= files.js.out %>']

0 commit comments

Comments
 (0)