broccoli-clean-css
Advanced tools
Comparing version 3.0.0-0 to 3.0.0-1
12
index.js
@@ -47,13 +47,3 @@ 'use strict'; | ||
build() { | ||
if (typeof this[internalOptions].rebaseTo === 'string') { | ||
this[internalInstance] = new CleanCssPromise({ | ||
...this[internalOptions], | ||
rebaseTo: resolve(this.inputPaths[0], this[internalOptions].rebaseTo) | ||
}); | ||
} else { | ||
this[internalInstance] = new CleanCssPromise({ | ||
rebaseTo: this.inputPaths[0], | ||
...this[internalOptions] | ||
}); | ||
} | ||
this[internalInstance] = new CleanCssPromise(this[internalOptions]); | ||
@@ -60,0 +50,0 @@ return super.build(); |
{ | ||
"name": "broccoli-clean-css", | ||
"version": "3.0.0-0", | ||
"version": "3.0.0-1", | ||
"description": "CSS minifier for Broccoli, using clean-css", | ||
@@ -5,0 +5,0 @@ "repository": "shinnn/broccoli-clean-css", |
# broccoli-clean-css | ||
[](https://www.npmjs.com/package/broccoli-clean-css) | ||
[](https://travis-ci.org/shinnn/broccoli-clean-css) | ||
[](https://travis-ci.com/shinnn/broccoli-clean-css) | ||
[](https://coveralls.io/github/shinnn/broccoli-clean-css?branch=master) | ||
[Broccoli](https://github.com/broccolijs/broccoli) plugin to minify CSS with [clean-css](https://github.com/jakubpawlowicz/clean-css) | ||
A [Broccoli](https://github.com/broccolijs/broccoli) plugin to minify CSS with [clean-css](https://github.com/jakubpawlowicz/clean-css) | ||
```css | ||
a { | ||
color: #FF0000; | ||
color: #ff0000; | ||
} | ||
a { | ||
border-radius: 4px 4px 4px 4px; | ||
b { | ||
/* nothing */ | ||
} | ||
@@ -22,3 +22,3 @@ ``` | ||
```css | ||
a{color:red;border-radius:4px} | ||
a{color:red} | ||
``` | ||
@@ -28,3 +28,3 @@ | ||
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm). | ||
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/). | ||
@@ -55,3 +55,2 @@ ``` | ||
* `rebaseTo` option is regarded as relative to the Broccoli target path. | ||
* `returnPromise` option defaults to `true` and cannot be disabled. | ||
@@ -62,4 +61,4 @@ * All problems that clean-css considers as *warnings*, for example broken CSS syntax, are regarded as errors. | ||
Copyright (c) 2014 - 2018 [Shinnosuke Watanabe](https://github.com/shinnn) | ||
Copyright (c) 2014 - 2019 [Watanabe Shinnosuke](https://github.com/shinnn) | ||
Licensed under [the MIT License](./LICENSE). |
Sorry, the diff of this file is not supported yet
5834
57
61