forked from by-pinja/ng-virtual-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
56 lines (55 loc) · 1.06 KB
/
webpack.config.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
let path = require('path');
let webpack = require('webpack');
module.exports = {
entry: {
'@protacon/ng-virtual-keyboard': path.join(__dirname, 'src', 'index.ts'),
},
resolve: {
extensions: [
'.ts',
'.js',
'.json',
'.css',
'.html',
],
},
/*
resolveLoader: {
root: path.join(__dirname, 'node_modules'),
},
*/
output: {
path: path.join(__dirname, 'dist'),
filename: 'ng-virtual-keyboard.umd.js',
library: [
'ng-virtual-keyboard',
],
libraryTarget: 'umd',
},
externals: [
/^rxjs\//, //.... any other way? rx.umd.min.js does work?
/^@angular\//,
],
devtool: 'source-map',
module: {
rules: [
{ // Support for .ts files.
test: /\.ts$/,
use: [
{
loader: 'ts-loader',
options: {
include: [
'src/**/*.ts',
'app/**/*.ts',
],
},
},
{
loader: 'angular2-template-loader',
},
],
},
],
},
};