From 3a2db2014f41fe7140ae2a31b53f21697cb0ca3d Mon Sep 17 00:00:00 2001 From: skanaar Date: Sat, 16 May 2020 11:31:01 +0200 Subject: [PATCH] remove all comments except the license notice when minifying --- Makefile | 4 ++-- index.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7a2a6138..42b7af2c 100644 --- a/Makefile +++ b/Makefile @@ -56,13 +56,13 @@ $(BUILD_DIR)/$(MOD).js: index.js $(SRC_FILES) | unit-test @$(BROWSERIFY) $< > $@ -s dagre $(BUILD_DIR)/$(MOD).min.js: $(BUILD_DIR)/$(MOD).js - @$(UGLIFY) $< --comments '@license' > $@ + @$(UGLIFY) $< --comments > $@ $(BUILD_DIR)/$(MOD).core.js: index.js $(SRC_FILES) | unit-test @$(BROWSERIFY) $< > $@ --no-bundle-external -s dagre $(BUILD_DIR)/$(MOD).core.min.js: $(BUILD_DIR)/$(MOD).core.js - @$(UGLIFY) $< --comments '@license' > $@ + @$(UGLIFY) $< --comments > $@ dist: $(BUILD_FILES) | bower.json test @rm -rf $@ diff --git a/index.js b/index.js index 625910c0..cce36854 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ /* +@license Copyright (c) 2012-2014 Chris Pettitt Permission is hereby granted, free of charge, to any person obtaining a copy