"use strict"
let Plugin = require('../Source/Plugin')
let Path = require('path')
let Uglify
class UglifyJS extends Plugin{
  static Process(Contents, Options){
    if(!Options.Compress) return Contents
    Uglify = Uglify || require('uglifyjs')
    return Uglify.minify(Contents, {fromString: true}).code
  }
}
UglifyJS.Initialize()
UglifyJS.Info.Priority = 100
UglifyJS.Info.Extensions = ['.js', '.coffee']
module.exports = UglifyJS
"use strict"
let Plugin = require('../Source/Plugin')
let Path = require('path')
let Uglify
class UglifyJS extends Plugin{
  static Process(Contents, Options){
    if(!Options.Compress) return Contents
    Uglify = Uglify || require('uglifyjs')
    return Uglify.minify(Contents, {fromString: true}).code
  }
}
UglifyJS.Initialize()
UglifyJS.Info.Priority = 150
UglifyJS.Info.Extensions = ['.js', '.coffee']
module.exports = UglifyJS
Increase priority of UglifyJS