酒店预订平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

12 行
337 B

  1. const UglifyJS = require('uglify-js'),
  2. fs = require('fs'),
  3. package = require('../package.json');
  4. const banner = `/*! Sortable ${ package.version } - ${ package.license } | ${ package.repository.url } */\n`;
  5. fs.writeFileSync(
  6. `./Sortable.min.js`,
  7. banner + UglifyJS.minify(fs.readFileSync(`./Sortable.js`, 'utf8')).code,
  8. 'utf8'
  9. );