rollup-plugin-tdewolff-minify
v1.0.0
Published
Rollup plugin to minify generated es bundle using tdewolff minifier
Downloads
7
Maintainers
Readme
rollup-plugin-tdewolff-minify
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.