forked from mattlewis92/calendar-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.ts
More file actions
32 lines (31 loc) · 741 Bytes
/
Copy pathwebpack.config.ts
File metadata and controls
32 lines (31 loc) · 741 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
import * as webpackDateFnsExternals from 'webpack-date-fns-externals';
module.exports = {
entry: __dirname + '/src/calendar-utils.ts',
output: {
path: __dirname + '/dist/umd',
filename: 'calendar-utils.js',
libraryTarget: 'umd',
library: 'calendarUtils'
},
externals: [
webpackDateFnsExternals()
],
module: {
rules: [{
test: /\.ts$/,
loader: 'tslint-loader?emitErrors=true&failOnHint=true',
exclude: /node_modules/,
enforce: 'pre'
}, {
test: /\.ts$/,
loader: 'awesome-typescript-loader?module=es2015&declaration=false',
exclude: /node_modules/,
options: {
module: 'es2015'
}
}]
},
resolve: {
extensions: ['.ts', '.js']
}
};