[ 2 posts ]

Bryan Kane

  • Username: r_bryan_kane
  • Joined: Thu Oct 01, 2009 12:51 pm
  • Posts: 8
  • Location: Oregon
  • Offline
  • Profile
Tags:

Preserve comments

Post Posted: Wed Jun 13, 2012 4:43 pm
+1-
Is it possible to preserve a line of comments when a file is minified? I'm imagining some some sort of special demarcation like //// or something like that. I searched the forums and didn't anything on it.

I know that the compressor is for minifying, not obfuscating, but I'd like to add a readable copyright notice at the top of the minifiied file.

Thanks for any tips you might have.

Bryan

Engelke

YUI Contributor

  • Username: tekai
  • Joined: Mon Sep 07, 2009 8:13 am
  • Posts: 1
  • GitHub: tekai
  • Gists: tekai
  • Offline
  • Profile

Re: Preserve comments

Post Posted: Mon Aug 13, 2012 2:57 am
+0-
From the README:

Quote:
C-style comments starting with /*! are preserved. This is useful with
comments containing copyright/license information.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum