2018-01-24 05:56:14 -05:00
|
|
|
import buildOptimizer from 'rollup-plugin-angular-optimizer'
|
2018-01-16 11:17:47 -05:00
|
|
|
import nodeResolve from 'rollup-plugin-node-resolve';
|
2018-02-02 05:09:42 -05:00
|
|
|
import paths from 'rollup-plugin-paths';
|
|
|
|
import pathMapping from 'rxjs/_esm5/path-mapping';
|
2018-01-16 11:17:47 -05:00
|
|
|
import uglify from 'rollup-plugin-uglify';
|
|
|
|
|
|
|
|
export default {
|
2018-01-24 05:56:14 -05:00
|
|
|
input: `built/index.js`,
|
2018-01-16 11:17:47 -05:00
|
|
|
output: {
|
|
|
|
name: 'hw',
|
|
|
|
file: `dist/bundle.js`,
|
|
|
|
format: 'iife',
|
2018-01-24 05:56:14 -05:00
|
|
|
sourcemap: true
|
2018-01-16 11:17:47 -05:00
|
|
|
},
|
|
|
|
plugins: [
|
2018-02-02 05:09:42 -05:00
|
|
|
paths(pathMapping()),
|
2018-01-16 11:17:47 -05:00
|
|
|
nodeResolve({jsnext: true, module: true}),
|
2018-02-02 05:09:42 -05:00
|
|
|
buildOptimizer(),
|
2018-01-16 11:17:47 -05:00
|
|
|
uglify({
|
|
|
|
mangle: true,
|
|
|
|
compress: {
|
|
|
|
global_defs: {
|
|
|
|
'ngDevMode': false,
|
2018-02-02 05:09:42 -05:00
|
|
|
},
|
|
|
|
keep_fargs: false,
|
|
|
|
passes: 3,
|
|
|
|
pure_getters: true,
|
|
|
|
unsafe: true,
|
2018-01-16 11:17:47 -05:00
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
external: []
|
|
|
|
}
|