@cherry-soda/minifier

0.1.0-experimental • Public • Published

Cherry-soda Minifier

A minifier for made for esbuild, used in cherry-soda.

Install with npm i @cherry-soda/minifier

This package provides multiple plugins:

JS Minifier

Largely adopted from terser-webpack-plugin. Refer to the project's docs for details on the options.

parallel is not implemented, yet

Use like this:

import esbuild from 'esbuild'
import {jsMinifierPlugin} from '@cherry-soda/minifier'

esbuild.build({
    // ...
    plugins: [
        // ...
        jsMinifierPlugin({
            // ...
        })
        // ...
    ],
    // ...
})

CSS Minifier

Largely adopted from css-minimizer-webpack-plugin. Refer to the project's docs for details on the options.

parallel is not implemented, yet

Use like this:

import esbuild from 'esbuild'
import {cssMinifierPlugin} from '@cherry-soda/minifier'

esbuild.build({
    // ...
    plugins: [
        // ...
        cssMinifierPlugin({
            // ...
        })
        // ...
    ],
    // ...
})

Readme

Keywords

none

Package Sidebar

Install

npm i @cherry-soda/minifier

Weekly Downloads

2

Version

0.1.0-experimental

License

none

Unpacked Size

135 kB

Total Files

20

Last publish

Collaborators

  • drinking-code