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';
|
2019-01-14 16:25:40 -05:00
|
|
|
import copy from 'rollup-plugin-copy';
|
2018-06-01 16:01:29 -04:00
|
|
|
|
|
|
|
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,
|
2019-01-14 16:25:40 -05:00
|
|
|
copy({
|
|
|
|
'public/index-prod.html': 'build/index.html',
|
|
|
|
'public/favicon.ico': 'build/favicon.ico',
|
|
|
|
'public/css/bootstrap.css': 'build/css/bootstrap.css',
|
|
|
|
'public/css/app.css': 'build/css/app.css',
|
|
|
|
}),
|
2018-06-01 16:01:29 -04:00
|
|
|
terser(),
|
|
|
|
filesize(),
|
|
|
|
],
|
|
|
|
};
|