Skip to content

Instantly share code, notes, and snippets.

@panghea
Last active Apr 17, 2017
Embed
What would you like to do?
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