2018-01-24 05:56:14 -05:00
|
|
|
import buildOptimizer from 'rollup-plugin-angular-optimizer'
|
2018-01-16 11:17:47 -05:00
|
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
|
|
import nodeResolve from 'rollup-plugin-node-resolve';
|
|
|
|
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-01-24 05:56:14 -05:00
|
|
|
buildOptimizer(),
|
2018-01-16 11:17:47 -05:00
|
|
|
nodeResolve({jsnext: true, module: true}),
|
|
|
|
commonjs({
|
2018-01-24 05:56:14 -05:00
|
|
|
include: 'node_modules/rxjs/**'
|
2018-01-16 11:17:47 -05:00
|
|
|
}),
|
|
|
|
uglify({
|
|
|
|
mangle: true,
|
|
|
|
compress: {
|
|
|
|
global_defs: {
|
|
|
|
'ngDevMode': false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
external: []
|
|
|
|
}
|