![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Transpile your CSS bundle to support CSS variables, calc, and future CSS for non supported browsers.
Transpile your CSS bundle to support CSS variables, calc, and future CSS for legacy browsers.
postcss-preset-env
.postcss-custom-properties
, and postcss-calc
.Example usage of this CLI would be cases where you don't have the power, or will to edit/write postcss/webpack config for your application. One of those examples are Create React App.
Create React App:
$ npm run build
$ cat build/static/css/*.chunk.css >> bundle.css
$ cessie bundle.css -o ie11.css
$ npm i -g cessie
// Or use npx
$ npx cessie
$ cessie inputFile.css -o ie11.css
Usage
$ cessie <input> -o filename.css
Options
--out-file, -o Name of the out file
--minify, -m Minify css. Defaults to true.
--watch, -w Watch for file changes. Defaults to false.
--source-map, -s Generate source map. Defaults to true.
--import-from, -i Import CSS variables from file (https://github.com/postcss/postcss-custom-properties#importfrom)
--export-to, -e Export CSS variables to file (https://github.com/postcss/postcss-custom-properties#exportto)
Examples
$ cessie bundle.css -o ie11.css
// css/sass/less file
:root {
--color: white;
--padding: 10px;
}
div {
color: var(--color);
padding: calc(var(--padding) * 2);
}
// Run cessie with no minify
$ cessie my.css -o output.css -m false
// output.css
div {
color: white;
padding: 20px;
}
See more examples
Please write an issue.
MIT © Bjarne Øverli
FAQs
Transpile your CSS bundle to support CSS variables, calc, and future CSS for non supported browsers.
The npm package cessie receives a total of 0 weekly downloads. As such, cessie popularity was classified as not popular.
We found that cessie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.