forked from raychenfj/ion-multi-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
47 lines (38 loc) · 958 Bytes
/
webpack.config.js
File metadata and controls
47 lines (38 loc) · 958 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
41
42
43
44
45
46
47
'use strict';
/**
* This configuration file is used for karma test
*/
// Modules
var webpack = require('webpack');
module.exports = function makeWebpackConfig() {
var config = {};
config.entry = {};
/**
* Output
* Reference: http://webpack.github.io/docs/configuration.html#output
* Should be an empty object if it's generating a test build
* Karma will handle setting it up for you when it's a test build
*/
config.output = {};
config.resolve = {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: ['', '.webpack.js', '.web.js', '.ts', '.tsx', '.js']
};
config.module = {
preLoaders: [],
loaders: [{
// ts-loader
test: /\.tsx?$/,
exclude: /node_modules/,
loaders: ['babel','ts-loader'],
}]
};
config.stats = {
colors: true,
modules: true,
reasons: true,
errorDetails: true
};
config.devtool = 'inline-source-map';
return config;
}();