Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

atma-io-middleware-uglify

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atma-io-middleware-uglify

UglifyJS2 Middleware for Atma.IO and Atma.Toolkit

latest
npmnpm
Version
1.1.25
Version published
Maintainers
1
Created
Source

UglifyJS (Atma Plugin)

The Plugin extends:

How to use
Embed into the Project
  • atma plugin install atma-io-middleware-uglify

    This adds atma-loader-babel npm dependency and the package.json would look like:

        {
            "devDependencies": {
                "atma-io-middleware-uglify"
            },
            "atma": {
                "plugins": [
                    "atma-io-middleware-uglify"
                ],
                "settings": {
    				"atma-io-middleware-uglify": {
    					"minify" : true,
    					"defines": {} // override const variables,
                        "uglify": {} // override uglify js options
    				}
                }
            }
        }
    
  • Extend your build.js file

    module.exports = {
        // other actions
        'compress': {
            action: 'atma-io-middleware-uglify',
            files: [ 'source/lib.js' ],
            output: 'release/',
    
            // optionaly, define constants for the UglifyJS compressor
            defines: {
                DEBUG: false,
                SAFE: true,
                BROWSER: true,
                NODE: false
            }
        }
    }
    
  • Run

    $ atma compress
    

The MIT License

FAQs

Package last updated on 13 Nov 2018

Did you know?

Socket

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