How to specify multiple source-maps in uglify grunt task?
问题 I am using grunt-contrib-uglify plugin in my grunt 0.4 . I have the following task: uglify: { dist: { options: { sourceMap: 'dist/sm/sm.js' }, files: grunt.file.expandMapping(['*.js'], 'dist/js', { cwd: 'dist/js' }) } }, As you can see, uglify is configured to compress multiple files, and there is only one source-map specified. (I am not able to figure out a way to specify multiple sourcemap outputs). Also, uglify is overwriting the soucemap after compressing each js file. How do I configure