postcss
Advanced tools
Comparing version 8.3.6 to 8.3.7
'use strict' | ||
let { red, bold, gray, options: colorette } = require('colorette') | ||
let { red, bold, gray, isColorSupported } = require('nanocolors') | ||
@@ -47,3 +47,3 @@ let terminalHighlight = require('./terminal-highlight') | ||
let css = this.source | ||
if (color == null) color = colorette.enabled | ||
if (color == null) color = isColorSupported | ||
if (terminalHighlight) { | ||
@@ -50,0 +50,0 @@ if (color) css = terminalHighlight(css) |
@@ -9,3 +9,3 @@ 'use strict' | ||
constructor(plugins = []) { | ||
this.version = '8.3.6' | ||
this.version = '8.3.7' | ||
this.plugins = this.normalize(plugins) | ||
@@ -12,0 +12,0 @@ } |
'use strict' | ||
let { cyan, gray, green, yellow, magenta } = require('colorette') | ||
let { cyan, gray, green, yellow, magenta } = require('nanocolors') | ||
@@ -5,0 +5,0 @@ let tokenizer = require('./tokenize') |
{ | ||
"name": "postcss", | ||
"version": "8.3.6", | ||
"version": "8.3.7", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -63,5 +63,8 @@ "engines": { | ||
"repository": "postcss/postcss", | ||
"bugs": { | ||
"url": "https://github.com/postcss/postcss/issues" | ||
}, | ||
"dependencies": { | ||
"colorette": "^1.2.2", | ||
"nanoid": "^3.1.23", | ||
"nanocolors": "^0.1.5", | ||
"nanoid": "^3.1.25", | ||
"source-map-js": "^0.6.2" | ||
@@ -72,3 +75,2 @@ }, | ||
"source-map-js": false, | ||
"colorette": false, | ||
"path": false, | ||
@@ -75,0 +77,0 @@ "url": false, |
@@ -92,4 +92,3 @@ # PostCSS [![Gitter][chat-img]][chat] | ||
* [`precss`] contains plugins for Sass-like features, like variables, nesting, | ||
and mixins. | ||
* [`postcss-nested`] unwraps nested rules the way Sass does. | ||
* [`postcss-sorting`] sorts the content of rules and at-rules. | ||
@@ -150,3 +149,3 @@ * [`postcss-utilities`] includes the most commonly used shortcuts and helpers. | ||
[`cssnano`]: https://cssnano.co/ | ||
[`precss`]: https://github.com/jonathantneal/precss | ||
[`postcss-nested`]: https://github.com/postcss/postcss-nested | ||
[`doiuse`]: https://github.com/anandthakker/doiuse | ||
@@ -315,4 +314,4 @@ [`rtlcss`]: https://github.com/MohammadYounes/rtlcss | ||
plugins: [ | ||
require('precss'), | ||
require('autoprefixer') | ||
require('autoprefixer'), | ||
require('postcss-nested') | ||
] | ||
@@ -336,3 +335,3 @@ } | ||
.pipe( sourcemaps.init() ) | ||
.pipe( postcss([ require('precss'), require('autoprefixer') ]) ) | ||
.pipe( postcss([ require('autoprefixer'), require('postcss-nested') ]) ) | ||
.pipe( sourcemaps.write('.') ) | ||
@@ -417,7 +416,7 @@ .pipe( gulp.dest('build/') ) | ||
const postcss = require('postcss') | ||
const precss = require('precss') | ||
const postcssNested = require('postcss-nested') | ||
const fs = require('fs') | ||
fs.readFile('src/app.css', (err, css) => { | ||
postcss([precss, autoprefixer]) | ||
postcss([autoprefixer, postcssNested]) | ||
.process(css, { from: 'src/app.css', to: 'dest/app.css' }) | ||
@@ -424,0 +423,0 @@ .then(result => { |
189181
533
+ Addednanocolors@^0.1.5
+ Addednanocolors@0.1.12(transitive)
- Removedcolorette@^1.2.2
- Removedcolorette@1.4.0(transitive)
Updatednanoid@^3.1.25