-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
36 lines (33 loc) · 870 Bytes
/
webpack.config.js
File metadata and controls
36 lines (33 loc) · 870 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
'use strict';
var path = require('path');
var webExport = {
entry: {
hopplerjs: path.resolve(__dirname, 'src/hopplerjs.ts'),
},
output: {
path: path.resolve(__dirname),
filename: './dist/[name].js',
// library: false,
libraryTarget: 'umd',
},
resolve: {
// root: [path.resolve(__dirname, 'node_modules')],
// Add `.ts` and `.tsx` as a resolvable extension.
// extensions: ['.webpack.js', '.ts', '.tsx', '.js'],
// modules: ['node_modules']
extensions: ['.ts', '.tsx'],
},
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'awesome-typescript-loader?tsconfig=tsconfig.json',
}
]
},
watch: true,
watchOptions: {
aggregateTimeout: 300
}
};
module.exports = [webExport];