Copyright notice is always stripped
meleyal opened this issue · comments
meleyal commented
I tried the following, but my copyright notice is always stripped in the minified app.js
.
In application.coffee
I tried adding !
and @license
to the comment:
###!
@license app.js
Copyright 2014 blah...
###
In brunch-config.coffee
I tried the following options:
exports.config:
plugins:
uglify:
comments: 'all'
preamble: '# hello'
Alexander Kurakin commented
@meleyal did you solve the problem?
@paulmillr can you help please?
Bogdan Tudorica commented
use as following:
plugins:
uglify:
output:
comments: 'all'
you can also use a regexp for the comments value ( for example: comments: /@license|@preserve|^!/
) in order to keep only the comments that contain specific strings
Elan Shanker commented
Thanks @tudo