forked from visjs/ngx-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
37 lines (34 loc) · 814 Bytes
/
karma.conf.js
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
34
35
36
37
/**
* @author: @AngularClass
*/
'use strict';
var pkg = require('./package.json');
// Look in ./config for karma.conf.js
const config = {
src: '/',
// metadata
title: pkg.description,
baseUrl: '/',
// root folder name
src: 'demo',
dist: 'demo-build',
htmlIndexes: ['index.html'],
// karma bundle src
spec: './spec-bundle.js',
// webpack entry
entry: {
polyfills: './demo/polyfills.ts',
vendor: './demo/vendor.ts',
main: './demo/index.ts'
},
commonChunks: {
name: ['polyfills', 'vendor'].reverse()
},
// webpack alias
alias: {},
copy: [
{ from: 'demo/favicon.ico', to: 'favicon.ico' },
{ from: 'demo/assets', to: 'assets' }
]
};
module.exports = require('./.config/karma.conf')(config);