-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrollup.config.js
More file actions
33 lines (32 loc) · 782 Bytes
/
rollup.config.js
File metadata and controls
33 lines (32 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import buildOptimizer from 'rollup-plugin-angular-optimizer'
import nodeResolve from 'rollup-plugin-node-resolve';
import paths from 'rollup-plugin-paths';
import pathMapping from 'rxjs/_esm5/path-mapping';
import { uglify } from "rollup-plugin-uglify";
export default {
input: `./dist/out-tsc/src/app/app.component.js`,
output: {
name: 'hw',
file: `public/bundle.js`,
format: 'iife',
sourcemap: true
},
plugins: [
paths(pathMapping()),
nodeResolve({jsnext: true, module: true}),
buildOptimizer(),
uglify({
mangle: true,
compress: {
global_defs: {
'ngDevMode': false,
},
keep_fargs: false,
passes: 3,
pure_getters: true,
unsafe: true,
}
})
],
external: []
}