rollup-plugin-tdewolff-minify

1.0.0 • Public • Published

rollup-plugin-tdewolff-minify

Build Status npm package Coverage Status

Import po files as i18next compatible json objects with rollup

Install

$ npm install --save-dev rollup-plugin-tdewolff-minify @tdewolff/minify

Usage

Compile using:

// rollup.config.js
import minify from 'rollup-plugin-tdewolff-minify';

export default {
  input: 'src/main.js',
  output: {
    file: 'dist/bundle.js',
    format: 'esm',
  },
  plugins: [minify()]
};

Options

minThreads

Type: number Default: undefined

Sets the minimum number of threads that are always running for this thread pool. The default is based on the number of available CPUs.

maxThreads

Type: number Default: undefined

Sets the maximum number of threads that are running for this thread pool. The default is based on the number of available CPUs.

options

Type: object Default: undefined

Minify options, see https://github.com/tdewolff/minify/tree/master/bindings/js#usage.

Package Sidebar

Install

npm i rollup-plugin-tdewolff-minify

Weekly Downloads

137

Version

1.0.0

License

MIT

Unpacked Size

5.34 kB

Total Files

5

Last publish

Collaborators

  • perrin4869