jekyll-uglify
A Jekyll plugin for uglifying JS in a given directory using Uglifier, a Ruby wrapper for UglifyJS by lautis.
Installation
gem install jekyll-uglify
Set Up
In Gemfile
...
group :jekyll_plugins do
...
gem 'jekyll-uglify'
end
To enable options in _config.yml
jekyll-uglify:
harmony: true # Enable experimental ES6 conversion
You can find all available options and default values here.
Usage
bundle exec jekyll uglify [directory]
Include this command in your build process to uglify JS at build time.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the jekyll-uglify project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.