forked from chenqingspring/ng-lottie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.umd.js
37 lines (36 loc) · 908 Bytes
/
webpack.config.umd.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
const path = require('path');
module.exports = {
entry: './src/index.ts',
output: {
path: path.join(__dirname, 'dist', 'umd'),
filename: './LottieAnimationView.js',
libraryTarget: 'umd',
library: 'LottieAnimationView'
},
externals: {
'@angular/core': {
root: ['ng', 'core'],
commonjs: '@angular/core',
commonjs2: '@angular/core',
amd: '@angular/core'
},
'@angular/common': {
root: ['ng', 'common'],
commonjs: '@angular/common',
commonjs2: '@angular/common',
amd: '@angular/common'
}
},
devtool: 'source-map',
module: {
preLoaders: [{
test: /\.ts$/, loader: 'tslint-loader?emitErrors=true&failOnHint=true', exclude: /node_modules/
}],
loaders: [{
test: /\.ts$/, loader: 'awesome-typescript-loader', exclude: /node_modules/
}]
},
resolve: {
extensions: ['', '.ts', '.js']
}
};