forked from CirclonGroup/angular-tree-component
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrollup.config.js
More file actions
28 lines (27 loc) · 691 Bytes
/
Copy pathrollup.config.js
File metadata and controls
28 lines (27 loc) · 691 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
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import autoExternal from 'rollup-plugin-auto-external';
import uglify from 'rollup-plugin-uglify';
export default {
format: 'umd',
moduleName: 'angular-tree-component',
plugins: [
nodeResolve({ jsnext: true, main: true, module: true }),
commonjs(),
autoExternal(),
uglify()
],
sourceMap: true,
external: [
'@angular/core',
'@angular/common'
],
onwarn: function (warning) {
const skip_codes = [
'THIS_IS_UNDEFINED',
'MISSING_GLOBAL_NAME'
];
if ( skip_codes.indexOf(warning.code) != -1 ) return;
console.error(warning);
}
};