Git Product home page Git Product logo

csso-cli's People

Contributors

alexlafroscia avatar amarcu5 avatar hansott avatar lahmatiy avatar rijkvanzanten avatar xhmikosr avatar xlotlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csso-cli's Issues

Unable to install the package with npm

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!)

Versions outdated and wrong

  • This repository has the latest release version 3.0.0.
  • npm installs this tool as version 4.2.0 (according to csso --version).
  • The csso repository has the latest release 5.0.3 which is supposed to include important bug fixes.

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.

Source maps use full path as filename

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

css/csso#348

this.showHelp is not a function

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

Error [csstree-match] BREAK after 15000 iterations

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.

Add `--watch` option

It would be very useful to have a supported --watch options which automatically runs the compression when the source file changes.

Can the top comment be removed?

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?

Extremely slow operation

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.

Removed from npm?

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.

Syntax error in vm.js (csso-cli v4.0)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.