2018-06-01 16:01:29 -04:00
|
|
|
import baseConfig from './rollup.config';
|
|
|
|
import filesize from 'rollup-plugin-filesize';
|
2018-06-06 17:01:39 -04:00
|
|
|
import replace from 'rollup-plugin-replace';
|
2018-06-01 16:01:29 -04:00
|
|
|
import { terser } from 'rollup-plugin-terser';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
...baseConfig,
|
|
|
|
plugins: [
|
2018-06-06 17:01:39 -04:00
|
|
|
replace({
|
|
|
|
'process.env.NODE_ENV': "'production'",
|
|
|
|
}),
|
2018-06-01 16:01:29 -04:00
|
|
|
...baseConfig.plugins,
|
|
|
|
terser(),
|
|
|
|
filesize(),
|
|
|
|
],
|
|
|
|
};
|