-
Notifications
You must be signed in to change notification settings - Fork 754
/
webpack.config.js
39 lines (38 loc) · 1 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
// For instructions about this file refer to
// webpack and webpack-hot-middleware documentation
const webpack = require('webpack');
const path = require('path');
const context = [__dirname];
module.exports = {
context: path.join.apply(null, context),
entry: [
'./lib/index'
],
output: {
path: path.join.apply(null, context.concat("dist")),
filename: 'index.js',
},
devtool: "source-map",
plugins: [
// new webpack.NoEmitOnErrorsPlugin(),
],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
// alias: {
// "rx": path.resolve(process.cwd(), "public/assets/js/vendor/rx.lite.dom.ajax.js")
// }
},
module: {
loaders: [
{
test: /\.[tj]sx?$/,
exclude: /node_modules/,
loaders: ['awesome-typescript-loader']
},
{
test: /\.json$/,
loader: 'json'
}
]
}
};