Minified/obfuscated JS scripts with UglifyJS.
npm i rapidjs-org/plugin--minjs__rjs.plugin.json
{
  "package": "@plugins.rapidjs.org/minjs"
}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
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