Import po files as i18next compatible json objects with rollup
$ npm install --save-dev rollup-plugin-tdewolff-minify @tdewolff/minify
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()]
};
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.
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.
Type: object
Default: undefined
Minify options, see https://github.com/tdewolff/minify/tree/master/bindings/js#usage.