jstransformer-postcss
Advanced tools
+5
-0
| # Changelog | ||
| ## 0.4.1 - 2015-08-05 | ||
| - Release v0.4.1 / npm@v0.4.1 | ||
| - 100% coverage | ||
| ## 0.4.0 - 2015-08-05 | ||
| - Release v0.4.0 / npm@v0.4.0 | ||
| - update boilerplate | ||
@@ -5,0 +10,0 @@ |
+3
-5
@@ -11,9 +11,7 @@ 'use strict'; | ||
| opts = opts && typeof opts === 'object' ? opts : {}; | ||
| opts.plugins = opts.plugins && opts.plugins.length ? arrayify(opts.plugins) : [] | ||
| opts.plugins = opts.plugins && opts.plugins.length | ||
| ? (!Array.isArray(opts.plugins) ? [opts.plugins] : opts.plugins) | ||
| : [] | ||
| return postcss(opts.plugins).process(str, opts).css | ||
| }; | ||
| function arrayify (val) { | ||
| return !Array.isArray(val) ? [val] : val; | ||
| } |
+1
-1
| { | ||
| "name": "jstransformer-postcss", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "description": "PostCSS support for JSTransformers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
3878
1.95%12
-7.69%