2018-02-09 08:45:31 -05:00
|
|
|
import optimizer from '@angular-devkit/build-optimizer/src/build-optimizer/rollup-plugin'
|
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-09 08:45:31 -05:00
|
|
|
optimizer({
|
|
|
|
sideEffectFreeModules: ['@angular/core/esm5/core.js']
|
|
|
|
}),
|
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: []
|
|
|
|
}
|