jekyll-uglify
A Jekyll command plugin for uglifying given JS files or directories 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 FILEPATH [ADDITIONAL_FILEPATHS]
You can list any number of files or directories to be uglified. 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.