diff --git a/.gitattributes b/.gitattributes index 94f480d..6313b56 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -* text=auto eol=lf \ No newline at end of file +* text=auto eol=lf diff --git a/index.js b/index.js index 43452b2..5ba709d 100644 --- a/index.js +++ b/index.js @@ -3,10 +3,10 @@ const Filter = require('broccoli-filter'); const csso = require('csso'); module.exports = class extends Filter { - constructor(inputTree, options) { + constructor(inputTree, options = {}) { super(inputTree); this.inputTree = inputTree; - this.options = options || {}; + this.options = options; } get extensions() { diff --git a/license b/license index e7af2f7..fa7ceba 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) 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: diff --git a/package.json b/package.json index 77287a5..95404b0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Minify CSS using CSSO", "license": "MIT", "repository": "sindresorhus/broccoli-csso", + "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -38,4 +39,4 @@ "del": "^6.0.0", "xo": "^0.34.1" } -} \ No newline at end of file +} diff --git a/readme.md b/readme.md index 78bcd62..ecc01d8 100644 --- a/readme.md +++ b/readme.md @@ -1,17 +1,15 @@ -# [broccoli](https://github.com/joliss/broccoli)-csso [![Build Status](https://travis-ci.org/sindresorhus/broccoli-csso.svg?branch=master)](https://travis-ci.org/sindresorhus/broccoli-csso) +# [broccoli](https://github.com/joliss/broccoli)-csso [![Build Status](https://travis-ci.com/sindresorhus/broccoli-csso.svg?branch=master)](https://travis-ci.com/github/sindresorhus/broccoli-csso) > Minify CSS using [CSSO](https://github.com/css/csso) *Issues with the output should be reported on the CSSO [issue tracker](https://github.com/css/csso/issues).* - ## Install ``` $ npm install --save-dev broccoli-csso ``` - ## Usage ```js @@ -19,21 +17,15 @@ const CSSO = require('broccoli-csso'); tree = new CSSO(tree, options); ``` - ## API -### CSSO(tree, [options]) +### CSSO(tree, options?) #### options ##### restructure -Type: `boolean`
+Type: `boolean`\ Default: `true` Structure minimization. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com)