1.1.0 • Published 10 months ago

postcss-strip-comments v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

postcss-strip-comments

A very lightweight PostCSS plugin to strip comments. No configuration available at this time.

Installation

yarn add -D postcss-strip-comments

Usage

postcss -u postcss-strip-comments -o dist/index.css src/index.css

This plugin turns this:

/**
  * This is my class that spans multiple lines
  */
.lightest {
    /* These are my variables */
  --a: #fff;
  --b: rgba(255, 255, 255, 0.8);
  --c: 10px;
  --d: block;
  --e: var(--a);

/* These are my properties */
  text-transform: capitalize;
  color: var(--e);
  display: var(--d);
  font-size: var(--c, 18px);
}

Into this:

.lightest {
  --a: #fff;
  --b: rgba(255, 255, 255, 0.8);
  --c: 10px;
  --d: block;
  --e: var(--a);
  text-transform: capitalize;
  color: var(--e);
  display: var(--d);
  font-size: var(--c, 18px);
}
1.1.0

10 months ago

1.0.0

10 months ago