Bläddra i källkod

fix bug where comments werent stripped out of minified dist js

Adam Shaw 9 år sedan
förälder
incheckning
b9a87f782c
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      Gruntfile.js

+ 2 - 1
Gruntfile.js

@@ -97,7 +97,8 @@ module.exports = function(grunt) {
 	// create minified versions of JS
 	config.uglify.modules = {
 		options: {
-			preserveComments: 'some' // keep comments starting with /*!
+			preserveComments: /(?:^!|@(?:license|preserve|cc_on))/ // keep certain comments
+				// https://github.com/gruntjs/grunt-contrib-uglify/issues/366#issuecomment-157208530
 		},
 		expand: true,
 		src: 'dist/fullcalendar.js', // only do it for fullcalendar.js