Skip to content

Instantly share code, notes, and snippets.

@panghea
Last active April 17, 2017 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panghea/5934694 to your computer and use it in GitHub Desktop.
Save panghea/5934694 to your computer and use it in GitHub Desktop.
grunt-contrib-uglifyでsourceMapのファイル名を可変にする方法 ref: http://qiita.com/panghea@github/items/b691b85e293b119a2f47
uglify: {
options: {
sourceMap: function(name) { return name.replace(/.js/,".map");}
},
build: {
files: [
{
expand: true,
src: ['**/*.js'],
dest: '../build/',
ext: '.js',
},
],
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment