fis3 压缩的 js 如何保留注释?

fis.match("*.js", {
    optimizer: fis.plugin("uglify-js")
});

类似 jquery 这样的版权会被删掉。

/*!
 * jQuery JavaScript Library v1.12.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT @license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:17Z
 */
阅读 2.7k
1 个回答

一般的做法都是先压缩删除 再在头部添加注释

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进