Socket
Socket
Sign inDemoInstall

clean-css-cli

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-css-cli - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

5

History.md

@@ -0,1 +1,6 @@

[5.1.0 / 2021-02-12](https://github.com/jakubpawlowicz/clean-css-cli/compare/5.0...v5.1.0)
==================
* Fixed issue [#51](https://github.com/jakubpawlowicz/clean-css-cli/issues/51) - excluding files via glob negated pattern.
[5.0.1 / 2021-02-11](https://github.com/jakubpawlowicz/clean-css-cli/compare/v5.0.0...v5.0.1)

@@ -2,0 +7,0 @@ ==================

9

index.js

@@ -176,4 +176,9 @@ var fs = require('fs');

function expandGlobs(paths) {
return paths.reduce(function (accumulator, path) {
return accumulator.concat(glob.sync(path, { nodir: true, nonull: true}));
var globPatterns = paths.filter(function (path) { return path[0] != '!'; });
var ignoredGlobPatterns = paths
.filter(function (path) { return path[0] == '!'; })
.map(function (path) { return path.substring(1); });
return globPatterns.reduce(function (accumulator, path) {
return accumulator.concat(glob.sync(path, { ignore: ignoredGlobPatterns, nodir: true, nonull: true }));
}, []);

@@ -180,0 +185,0 @@ }

{
"name": "clean-css-cli",
"version": "5.0.1",
"version": "5.1.0",
"description": "A command-line interface to clean-css CSS optimization library",

@@ -48,4 +48,4 @@ "scripts": {

"engines": {
"node": ">= 10.0"
"node": ">= 10.12.0"
}
}

@@ -22,2 +22,3 @@ <h1 align="center">

- [Use](#use)
* [What's new in version 5.1](#whats-new-in-version-51)
* [What's new in version 5.0](#whats-new-in-version-50)

@@ -49,3 +50,3 @@ * [What's new in version 4.3](#whats-new-in-version-43)

clean-css-cli requires Node.js 10.0+ (tested on Linux, OS X, and Windows)
clean-css-cli requires Node.js 10.0+ (tested on Linux)

@@ -65,2 +66,8 @@ # Install

## What's new in version 5.1
clean-css-cli 5.1 introduces the following changes / features:
* accept `!path/to/file` as a way of telling `cleancss` to ignore such file, also accepts any available glob patterns.
## What's new in version 5.0

@@ -136,3 +143,3 @@

--source-map-inline-sources Enables inlining sources inside source maps
--with-rebase Disable URLs rebasing
--with-rebase Enables URLs rebasing
```

@@ -390,2 +397,8 @@

Since clean-css-cli 5.1 you can also use a negated pattern to exclude some files from being matched, e.g.
```shell
cleancss --batch styles/*.css !styles/*.min.css
```
## How to specify a custom rounding precision?

@@ -392,0 +405,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc