Nutty Professor Movie

    uglify-js-plugin

    0.0.6 • Public • Published

    uglify-js-plugin

    Uglify JavaScript for webpack

    Install

    $ npm install uglify-js-plugin --save-dev

    Usage

    //webpack.config.js
    var UglifyJsPlugin = require('uglify-js-plugin');
     
    module.exports = {
        entry: {
            hello: './src/hello.js'
        },
        output: {
            path: './build',
            filename: '[name].js'
        },
        plugins: [
            new UglifyJsPlugin({
                compress: true, //default 'true', you can pass 'false' to disable this plugin
                debug: true //default 'false', it will display some information in console
            })
        ]
    };

    Keywords

    Install

    npm i uglify-js-plugin

    DownloadsWeekly Downloads

    1,805

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • kyleo