Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 25, 2020
1 parent c9a762e commit cf63692
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto eol=lf
* text=auto eol=lf
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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:

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -38,4 +39,4 @@
"del": "^6.0.0",
"xo": "^0.34.1"
}
}
}
14 changes: 3 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,31 @@
# [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
const CSSO = require('broccoli-csso');
tree = new CSSO(tree, options);
```


## API

### CSSO(tree, [options])
### CSSO(tree, options?)

#### options

##### restructure

Type: `boolean`<br>
Type: `boolean`\
Default: `true`

Structure minimization.


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

0 comments on commit cf63692

Please sign in to comment.