postcss-strip-comments

1.1.0 • Public • Published

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);
}

Package Sidebar

Install

npm i postcss-strip-comments

Weekly Downloads

0

Version

1.1.0

License

Apache-2.0

Unpacked Size

15 kB

Total Files

4

Last publish

Collaborators

  • castastrophe