import base from './rollup.config.base';
import uglify from 'rollup-plugin-uglify';
const {name} = require('../package.json');
import {camelize} from 'toxic-utils';
const config = base('min');
config.plugins.push(uglify());
export default Object.assign(config, {
  format: 'umd',
  dest: 'lib/index.min.js',
  moduleName: camelize(name, true)
});

import base from './rollup.config.base';
import uglify from 'rollup-plugin-uglify';
import replace from 'rollup-plugin-replace';
const {name} = require('../package.json');
import {camelize} from 'toxic-utils';
const config = base('min');
config.plugins.unshift(replace({
  'process.env.NODE_ENV': '"production"'
}));
config.plugins.push(uglify());
export default Object.assign(config, {
  format: 'umd',
  dest: 'lib/index.min.js',
  moduleName: camelize(name, true)
});

update build for min what: why: how: