dfkaye.github.io

~ building & testing JavaScript, CSS, HTML ~

Home Archives
Mar 24 2014

Preserving /*** multiline strings ***/ with UglifyJS2

Here are two quick and dirty examples showing how to preserve /*** multiline string comments ***/ when using uglifyjs (i.e., uglify 2.0). The first uses the basic uglify cli approach, the second uses gulp.

Read More

Share
  • gulp
  • multiline
  • uglify

Tags

  • CSS1
  • CoffeeScript1
  • Function1
  • JavaScript5
  • TDD2
  • boilerplate1
  • constructor1
  • es-discuss1
  • eval1
  • gulp1
  • hello1
  • hexo1
  • inheritance1
  • metaprogramming1
  • multiline1
  • performance1
  • pre-processors1
  • promise1
  • rawgit1
  • rawgithub1
  • simple2
  • testem1
  • travis1
  • uglify1
  • zen of python1

Tag Cloud

CSSCoffeeScriptFunctionJavaScriptTDDboilerplateconstructores-discussevalgulphellohexoinheritancemetaprogrammingmultilineperformancepre-processorspromiserawgitrawgithubsimpletestemtravisuglifyzen of python

Archives

  • March 20144
  • August 20133

Recent Posts

  • Problem with static inheritance in CoffeeScript (and JavaScript)
  • Preserving /*** multiline strings ***/ with UglifyJS2
  • JavaScript's eval() and Function() constructor
  • Build your own TDD boilerplate project for JavaScript
  • Don't Over-Promise
© 2014 David Kaye
Powered by Hexo
Home Archives