clean-css-cli VS node-sass

Compare clean-css-cli vs node-sass and see what are their differences.

clean-css-cli

The command line interface to clean-css CSS optimizer (by clean-css)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
clean-css-cli node-sass
2 23
295 8,485
0.7% 0.2%
3.3 4.3
about 1 month ago 6 days ago
JavaScript C++
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

clean-css-cli

Posts with mentions or reviews of clean-css-cli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-01-19.
  • Compile SASS with npm
    3 projects | dev.to | 19 Jan 2021
    Similar to the compile-styles script, the css-minify script is also quite long and contains many parameters. More info on all the parameters can be found at the clean-css-cli GitHub repo. The parameters being passed in indicate to run clean-css with a certain level of optimization, line break formatting, and to include source maps with the optimized output. The file to optimize is the styles.css file located in the dist folder that was generated by the compile-styles command, and the optimized output will be written to styles.min.css in the same folder. Now that all the required scripts have been added to the package.json file we can first compile, and then minify the scss source, by running the command npm run compile-styles followed by the command npm run css-minify. Then looking in the dist folder that was created there should be four files:
  • How can I setup my development environment with Tailwind and ONLY Tailwind?
    3 projects | /r/tailwindcss | 27 Dec 2020

node-sass

Posts with mentions or reviews of node-sass. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-22.
  • Use TailwindCSS prefixes for shared design system components
    6 projects | dev.to | 22 Jan 2024
    For many years, Culture Amp took the second option, and distributed shared components without compiled CSS. This meant that every app that consumed shared components needed to include the necessary CSS build tooling – at that time CSS Modules and node-sass – with a compatible version and configuration. This was relatively easy to set up, but over time proved difficult to maintain. When node-sass was deprecated in favour of (the much faster but slightly incompatible) Dart Sass, this demanded a difficult lock-step migration across all those codebases, which we have yet to achieve. And as new applications have switched to Tailwind for their own styles, they've had to continue to maintain those old build tools in parallel for the shared components' styles.
  • Solution of "Can't find Python executable 'python'" Node Error
    2 projects | dev.to | 15 Dec 2022
    The project that we developed use a node version 14.18.0 and we use a node-sass version 4.14.1 package and this package also deprecated for today.
  • Syncfusion Essential Studio 2022 Volume 2 Is Here!
    3 projects | /r/u_ArunITTech | 12 Jul 2022
    ES 2 component Sass files are compiled using dart Sass instead of node-sass. This change was made because node-sass has been deprecated.
  • Is tailwind used in real world when working at companies?What do you use to style your website
    6 projects | /r/Frontend | 21 Jun 2022
    node-sass - yes i am aware its deprecated πŸ˜…
  • Cloned a Github repository and ran 'npm install'. Then, it's looking to download a node-sass that doesn't even exists.
    2 projects | /r/AskProgramming | 2 Jun 2022
    C:\Webparts\react-script-editor>npm install npm WARN deprecated @types/[email protected]: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed. > [email protected] install C:\Webparts\react-script-editor\node_modules\node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_binding.node": HTTP error 404 Not Found
  • 'npm install' attempts to download an non-existent 'win32-x64-83_binding.node' file.
    2 projects | /r/AskProgramming | 1 Jun 2022
    Are you referring to when it's trying to download 'https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_binding.node' after I typed 'npm install'?
  • node-sass: Build fails on OpenBSD - How to fix
    2 projects | dev.to | 23 Feb 2022
    This Github issue helped me a lot.
  • node-sass: OpenBSD でビルドエラー - 解決方法
    3 projects | dev.to | 23 Feb 2022
  • "Precompiling assets failed" error when pushing to heroku
    1 project | /r/rails | 18 Feb 2022
    remote: ERROR in ./app/javascript/stylesheets/application.scss (./node_modules/css-loader/dist/cjs.js??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/sass-loader/dist/cjs.js??ref--7-3!./app/javascript/stylesheets/application.scss) remote: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): remote: Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93) remote: For more information on which environments are supported please see: remote: https://github.com/sass/node-sass/releases/tag/v4.14.1 remote: at module.exports (/tmp/build_37040035/node_modules/node-sass/lib/binding.js:13:13) remote: at Object. (/tmp/build_37040035/node_modules/node-sass/lib/index.js:14:35) remote: at Module._compile (node:internal/modules/cjs/loader:1101:14) remote: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) remote: at Module.load (node:internal/modules/cjs/loader:981:32) remote: at Function.Module._load (node:internal/modules/cjs/loader:822:12) remote: at Module.require (node:internal/modules/cjs/loader:1005:19) remote: at require (node:internal/modules/cjs/helpers:102:18) remote: at getDefaultSassImpl (/tmp/build_37040035/node_modules/sass-loader/dist/index.js:198:10) remote: at Object.loader (/tmp/build_37040035/node_modules/sass-loader/dist/index.js:80:29)
  • Trying to run older react app that uses node-sass
    1 project | /r/reactjs | 15 Feb 2022
    Ah damn I did not save the full error before uninstalling everything and rethinking my next move. From the various posts it seems I'm not the only one having the same issue, but never really found out what the smartest solution would be to go forward as none of those suggestions worked with the latest node-js version.

What are some alternatives?

When comparing clean-css-cli and node-sass you can also consider the following projects:

csso-cli - Command line interface for CSSO

dart-sass - The reference implementation of Sass, written in Dart.

clean-css - Fast and efficient CSS optimizer for node.js and the Web

zsh - Mirror of the Z shell source code repository.

Bootstrap - The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

core-js - Standard Library

apos-docs - Documentation static site generator.

yarn - The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry

cross-env

mini-css-extract-plugin - Lightweight CSS extraction plugin

html-webpack-plugin - Simplifies creation of HTML files to serve your webpack bundles

webpack-dev-server - Serves a webpack app. Updates the browser on changes. Documentation https://webpack.js.org/configuration/dev-server/.