dotcore64 / rollup-plugin-tdewolff-minify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:JavaScript 100.0%