Timers and other features for Heroes of the Storm
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
258 B

  1. 'use strict'
  2. const fs = require('fs')
  3. const UglifyJS = require('uglify-es')
  4. module.exports = function(filePath) {
  5. const code = fs.readFileSync(filePath, 'utf-8')
  6. const result = UglifyJS.minify(code)
  7. if (result.error) return ''
  8. return result.code
  9. }