This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-smaller --save-dev
In your project's Gruntfile, add a section named
smaller to the data object passed into
gruntinitConfigsmaller:options:// Task-specific options go here.your_target:// Target-specific file lists and/or options go here.
gruntinitConfigsmaller:dist:options:// mandatory options:'host': 'localhost' // "smaller" server needs to be set up & running'in': 'sampleFiles/js/app.json,sampleFiles/css/app.less''out': 'js/app-min.js,css/app-base64-min.css''target': 'tmp.smaller/dist/'// further options with default values:'processor': 'closure,uglifyjs,lessjs,yuiCompressor,cssembed''cleanup': true // clean up temp folder after running'port': 80'protocol': 'http://''options': 'output:out-only=true'files:src:'sampleFiles/js/**/*.js''sampleFiles/css/*.less''sampleFiles/img/**/*.*''!**/*.bin''!sampleFiles/js/*-min.js'
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Thanks to SinnerSchrader for support and the time to work on this project.
The MIT License (MIT)
Copyright (c) 2013 Oliver Hellebusch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.