UglifyJS (Atma Plugin)
The Plugin extends:
atma-io
with a custom middleware to write minified JavaScript to filesAtma Toolkit
with auglify
action
How to use
Embed into the Project
-
atma plugin install atma-io-middleware-uglify
This adds
atma-loader-babel
npm dependency and thepackage.json
would look like: -
Extend your
build.js
filemoduleexports =// other actions'compress':action: 'atma-io-middleware-uglify'files: 'source/lib.js'output: 'release/'// optionaly, define constants for the UglifyJS compressordefines:DEBUG: falseSAFE: trueBROWSER: trueNODE: false -
Run
$ atma compress
The MIT License