css / csso-cli Goto Github PK
View Code? Open in Web Editor NEWCommand line interface for CSSO
License: MIT License
Command line interface for CSSO
License: MIT License
In master branch the dependency chokidar has been updated to ^2.0.0 which is great.
However in release 2.0.2 (Tag) it still uses "chokidar": "^1.6.1" which has these security issues: https://snyk.io/test/npm/chokidar/1.7.0
Could you please make a new release that uses "chokidar": "^2.0.0".
When trying to run:
npm install -g csso-cli
I get an error:
error 404 Registry returned 404 for GET on https://registry.npmjs.org/csso-cli
error 404
error 404 'csso-cli' is not in the npm registry.
error 404 You should bug the author to publish it (or use the name yourself!)
Doing
csso -i c:\folder\css\file.css -o c:\folder\css\css.min
won't do anything while doing from c:\folder\css
csso -i file.css -o css.min
works
csso-cli fails to run because the lib folder is missing.
Error: Cannot find module '../lib/index.js'
Require stack:
...
at Object. (...\node_modules\csso-cli\bin\csso:3:13)
...
npm install csso-cli should link a shortcut to the binary into ./node_modules/.bin but it does not appear to do so. This worked with previous 2.x installs of csso.
Was there a reason for this change or just an oversight?
Thank you.
csso --version
).I'm confused. Can I please have a CLI csso with the latest version of the tool? I cannot verify the bug fixes and use modern CSS features if this tool isn't available.
It's seems source map is including full paths rather than relative files
{"version":3,"sources":["W:\test\css\index.css"],"names":[],"mappings":....
i'd expect to see
{"version":3,"sources":["index.css"],"names":[],"mappings":...
running win10
Command I ran:
node_modules/.bin/csso
Error:
node_modules/.bin/csso
/my-dir/node_modules/csso-cli/bin/csso:15
throw e;
^
TypeError: this.showHelp is not a function
at /my-dir/node_modules/csso-cli/lib/index.js:329:18
at Command.run (/my-dir/node_modules/clap/cjs/command.cjs:174:33)
at Object.run (/my-dir/node_modules/csso-cli/lib/index.js:346:30)
at Object.<anonymous> (/my-dir/node_modules/csso-cli/bin/csso:6:9)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
This CSS code cause error [csstree-match] BREAK after 15000 iterations
.selector {
box-shadow:0 0 0 0 rgba(88,7,126,.122),0 22px 49px 0 rgba(88,7,126,.122),0 88px 88px 0 rgba(88,7,126,.102),0 199px 119px 0 rgba(88,7,126,.059),0 353px 141px 0 rgba(88,7,126,.02),0 552px 154px 0 rgba(88,7,126,0),inset 0 -12px 68px 0 hsla(0,0%,100%,.349);
}
This is a valid CSS code.
It would be very useful to have a supported --watch
options which automatically runs the compression when the source file changes.
Hello, thanks for this amazing tool
I'm using it to process some third-party CSS files that are quite a mess.
A script downloads the needed files, and then I use csso-cli to optimize them. The issue is that the output starts always with such comments:
/**** path_to_css_file/file.css ***/
It's quite the issue since the full path may contain sensitive information about my system, can they be removed?
Linux Mint 20.1 running on Dell XPS15 i9 32GRAM
Running JetBrains WebStorm v2020.3.1
Small test site, pure html. Css written in SCSS files using SCSS plugin to create .css files. CSSO plugin set to respond to changes in .css files to minify them. SCSS plugin operates in less than a second, CSSO is typically taking 1min to run.
Have consulted JetBrains support, it doesn't seem to be their issue. Is it possible CSSO is misconfigured or is it only meant to be used as part of a build server rather than during development? In other IDE's and using other transpilers I can typically make an SCSS adjustment, save it and see it pretty much straight away when refreshing the browser. Not so with CSSO so far.
Please advise.
Is it possible to specify multiple input files to all be added to the same output file?
Csso cli does not appear to be on npm anymore. Installing gives 404 errors and the npm badge on the readme links to a non existant page.
Calling csso-cli from command line I got this error. Downgrade to 3.0.0 fix the poroblem
(function (exports, require, module, __filename, __dirname) { import { basename, extname } from 'path';
^
SyntaxError: Unexpected token {
at new Script (vm.js:84:7)
at createScript (vm.js:264:10)
at Object.runInThisContext (vm.js:312:10)
at Module._compile (internal/modules/cjs/loader.js:696:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
at Function.Module._load (internal/modules/cjs/loader.js:560:3)
at Module.require (internal/modules/cjs/loader.js:665:17)
at require (internal/modules/cjs/helpers.js:20:18)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.