Socket
Socket
Sign inDemoInstall

fis-optimizer-uglify-js-nfd

Package Overview
Dependencies
8
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fis-optimizer-uglify-js-nfd

A optimizer for fis to compress js by using uglify-js.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.45 MB
Created
Weekly downloads
 

Readme

Source

fis-optimizer-uglify-js

A optimizer for fis to compress js by using uglify-js.

使用

FIS内置

配置

在项目配置文件(默认fis-conf.js)配置

fis.config.set('settings.optimizer.uglify-js', option);

eg:

//export, module, require不压缩变量名
fis.config.set('settings.optimizer.uglify-js', {
    mangle: {
        except: 'exports, module, require, define'
    }
});

//自动去除console.log等调试信息
fis.config.set('settings.optimizer.uglify-js', {
    compress : {
        drop_console: true
    }
});

option 详细请参见 https://github.com/mishoo/UglifyJS2

Keywords

FAQs

Last updated on 13 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc