Skip to content

yomed/lasso-minify-inline-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

Lasso.js has incorporated the functionality of this plugin in both v1 and v2 as of 1.18.0 and 2.3.0.

lasso-minify-inline-js

Lasso.js plugin to minify inline javascript using UglifyJS.

Installation

npm install lasso-minify-inline-js --save

Motivation

In some cases it may be useful to only minify the inline resources. For example if your main resources are minified through some external process like a CDN, you may want to handle the inline resources separately. This serves as a simple solution to that problem (see lasso-js/lasso#84).

Usage

This plugin can be included through Lasso configuration. You would normally only enable this plugin when the default Lasso.js minifier is disabled, since otherwise both minification transforms will execute. UglifyJS options can be passed through config. The relevant portion of configuration should look something like this:

{
    "plugins": [
        {
            "plugin": "lasso-minify-inline-js",
            "config": {
                "mangle": false
            }
        }
    ],
    "minify": false
}

About

Lasso.js plugin to minify inline javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published