Problems with static inheritance

[originally posted 2014-03-27]

Some time in 2013 as I was working through some JavaScript constructor inheritance tests, I found an example of static inheritance as an anti-pattern (meaning don’t bother with it) in the transpiled code from a CoffeeScript tutorial.

Continue reading


Preserving multi-line comment-style strings with UglifyJS2

[originally posted 2014-03-24]

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, while the second example uses gulp.

Continue reading