Terser
By Pulgasari
Version 1.0.0
Terser Integration of the powerful JavaScript code minification engine called Terser into Acode. Note: This is not an official plugin of the Terser project. Features - minify code of the currently active file - minify code of the currently actve file and save it to separate file next to it ( .min.js ) Commands Command | Display Name | Description ----------------------|------------------------------------|------------ terser.minify | Minify (overwrite in Editor) | run Terser on the currently active file and replace its content in the editor terser.minifyToFile | Minify to .min.js (separate file) | run Terser on the currently active file and save it to a .min.js variant next to it Settings Terser Settings Option | Type | Default | Description --------------|--------|---------|---------------------------- module | bool | false | use when minifying an ES6 module. "use strict" is implied and names can be mangled on the top scope. keep fnames | bool | false | pass true to prevent discarding or mangling of function names. toplevel | bool | false | set to true if you wish to enable top level variable and function name mangling and to drop unused variables and functions. ie8 | bool | false | set to true to support IE8. safari10 | bool | false | pass true to work around Safari 10/11 bugs in loop scoping and await . Plugin Settings Option | Type | Default | Description -------------|--------|---------|---------------------------- showLogs | bool | true | enable/disable console logs showToasts | bool | true | enable/disable toast messages Roadmap - implement all configuration options - implement shortcut to minify files by right-click/long-press directly in the file list of the workspace Links - Official Website - Official GitHub - Terser CLI Usage Contact If you would like to message me, write me in German or English. - Discord: pulgasari1312 - eMail: moin@pulgasari.dev - GitHub: https://github.com/pulgasari - Website: https://pulgasari.dev