MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / cssMinifier

Function cssMinifier

rollup-plugins/replace-before-save-file.js:4–9  ·  view source on GitHub ↗
(css)

Source from the content-addressed store, hash-verified

2import { readFile, writeFile } from 'node:fs/promises'
3
4const cssMinifier = (css) =>
5 css
6 .replace(/([^0-9a-zA-Z.#])\s+/g, '$1')
7 .replace(/\s([^0-9a-zA-Z.#]+)/g, '$1')
8 .replace(/;}/g, '}')
9 .replace(/\/\*.*?\*\//g, '')
10
11/* eslint-disable no-param-reassign */
12/**

Callers 1

writeBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected