forked from mattlewis92/angular-resizable-element
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.umd.ts
More file actions
40 lines (38 loc) · 935 Bytes
/
Copy pathwebpack.config.umd.ts
File metadata and controls
40 lines (38 loc) · 935 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
29
30
31
32
33
34
35
36
37
38
39
40
import * as webpack from 'webpack';
const angularExternals = require('webpack-angular-externals');
const rxjsExternals = require('webpack-rxjs-externals');
export default {
entry: __dirname + '/src/index.ts',
output: {
path: __dirname + '/dist/umd',
filename: 'angular-resizable-element.js',
libraryTarget: 'umd',
library: 'angularResizableElement'
},
externals: [
angularExternals(),
rxjsExternals()
],
devtool: 'source-map',
module: {
rules: [{
test: /\.ts$/,
loader: 'tslint-loader?emitErrors=true&failOnHint=true',
exclude: /node_modules/,
enforce: 'pre'
}, {
test: /\.ts$/,
loader: 'ts-loader',
exclude: /node_modules/
}]
},
resolve: {
extensions: ['.ts', '.js']
},
plugins: [
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
__dirname + '/src'
)
]
};