https://github.com/hosmelq/laravel-elixir-uncss
Laravel Elixir wrapper for uncss
https://github.com/hosmelq/laravel-elixir-uncss
Last synced: 4 months ago
JSON representation
Laravel Elixir wrapper for uncss
- Host: GitHub
- URL: https://github.com/hosmelq/laravel-elixir-uncss
- Owner: hosmelq
- License: mit
- Created: 2015-10-24T17:24:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-27T16:50:28.000Z (almost 9 years ago)
- Last Synced: 2024-10-30T02:36:33.387Z (8 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-elixir-uncss
> Remove unused CSS with [UnCSS][uncss].
This is a simple [gulp-uncss][gulp-uncss] wrapper around Laravel Elixir. Add it to your Elixir-enhanced Gulpfile, like so:
## Install
With [npm](https://npmjs.org/package/laravel-elixir-uncss) do:
```
npm install laravel-elixir-uncss --save-dev
```## Example
```js
var elixir = require('laravel-elixir');require('laravel-elixir-uncss');
elixir(function(mix) {
mix.uncss('main.css', {
html: ['index.html']
});
});
```## Options
Please see the [gulp-uncss documentation][docs] for all of the options you can use.
## Contributing
Pull requests are welcome.
## License
MIT © [Hosmel Quintana](http://hosmelq.com)
[uncss]: https://github.com/giakki/uncss
[gulp-uncss]: http://badge.fury.io/js/gulp-uncss
[docs]: https://github.com/ben-eb/gulp-uncss#example