Skip to content

Commit 14c0360

Browse files
committed
Exclude rollup-config.js from aot sample's .gitignore
1 parent 9227760 commit 14c0360

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

samples/photo_album_aot/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ aot/
22

33
*.ngsummary.json
44
*.ngstyle.ts
5+
6+
!rollup-config.js
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import rollup from 'rollup'
2+
import nodeResolve from 'rollup-plugin-node-resolve'
3+
import commonjs from 'rollup-plugin-commonjs';
4+
import uglify from 'rollup-plugin-uglify'
5+
6+
export default {
7+
entry: 'app/main.js',
8+
dest: 'dist/build.js', // output a single application bundle
9+
sourceMap: false,
10+
format: 'iife',
11+
plugins: [
12+
nodeResolve({jsnext: true, module: true}),
13+
commonjs({
14+
include: ['node_modules/rxjs/**',
15+
'node_modules/@cloudinary/angular/**',
16+
'node_modules/cloudinary-core/**',
17+
],
18+
namedExports: {
19+
// left-hand side can be an absolute path, a path
20+
// relative to the current directory, or the name
21+
// of a module in node_modules
22+
'cloudinary-core/cloudinary-core-shrinkwrap': [ 'Cloudinary' ],
23+
'@cloudinary/angular': [ 'CloudinaryModule', 'Cloudinary' ],
24+
}
25+
}),
26+
]
27+
}

0 commit comments

Comments
 (0)