Skip to content

rapidjs-org/plugin--minjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Minify   rJS Plugin

Minified/obfuscated JS scripts with UglifyJS.

Install

npm i rapidjs-org/plugin--minjs

__rjs.plugin.json

{
  "package": "@plugins.rapidjs.org/minjs"
}

Use

All plugin sourced scripts are mapped to the public directory, but with minifed contents.

└─ /src …
   └─ /js
      ├─ __rjs.plugin.json
      ├─ app.js
      ├─ forms.js
      └─ /util
         └─ dialog.js

Configure

The output path within the public directory can be altered through the outPath configuration. UglifyJS options can be assigned to uglifyJSOptions.

__rjs.plugin.json

{
  "package": "@plugins.rapidjs.org/minjs",
  "config": {
    "outPath": "assets/js/",
    "uglifyJSOptions": {
      "output": {
        "comments": "all"
      }
    }
  }
}

© Thassilo Martin Schiepanski

About

rJS plugin for JS minification/obfuscation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published