grunt-pleeease ![Build Status](https://camo.githubusercontent.com/fcc0b9334f1d1ca298c76e2fae2ccf18201551ccc31123161f25e6594dfa546e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f64616e69656c68757361722f6772756e742d706c6565656173652e7376673f6272616e63683d6d6173746572)
Postprocess CSS with ease
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-pleeease --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-pleeease');
In your project's Gruntfile, add a section named pleeease
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
pleeease: {
custom: {
options: {
autoprefixer: {'browsers': ['last 4 versions', 'ios 6']},
filters: {'oldIE': true},
rem: ['12px'],
minifier: false,
...
},
files: {
'tmp/style.css': 'test/fixtures/style.css'
}
}
},
})
Files should be declared with source in the value and destination in the key object. In the previous example test/fixtures/styles.css
is the source and tmp/styles.css
is the destination.
Multiple files
grunt.initConfig({
pleeease: {
custom: {
options: {
minifier: false
},
files: {
'tmp/': 'test/fixtures/*.css'
}
}
},
})
Options passed into pleeease library.
same as pleeease options
MIT © Daniel Husar