blob: c2717089e9d84b48be3225e7398e0085c474c07f [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001module.exports = {
2 module: {
3 preLoaders: [
4 {
5 test: /\.ts$/,
6 exclude: /node_modules/,
7 loader: 'tslint'
8 }
9 ],
Matteo Scandolod819c922016-12-02 14:06:14 -080010 loaders: [
11 {
12 test: /.json$/,
13 loaders: [
14 'json'
15 ]
16 },
17 {
18 test: /\.ts$/,
19 exclude: /node_modules/,
20 loaders: [
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080021 'ng-annotate',
Matteo Scandolod819c922016-12-02 14:06:14 -080022 'ts'
23 ]
24 },
25 {
26 test: /.html$/,
27 loaders: [
28 'html'
29 ]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080030 },
31 {
32 test: /\.(css|scss)$/,
33 loaders: [
34 'style',
35 'css',
36 'sass',
37 'postcss'
38 ]
Matteo Scandolod819c922016-12-02 14:06:14 -080039 }
40 ]
41 },
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080042 plugins: [],
Matteo Scandolod819c922016-12-02 14:06:14 -080043 debug: true,
44 devtool: 'source-map',
45 resolve: {
46 extensions: [
47 '',
48 '.webpack.js',
49 '.web.js',
50 '.js',
51 '.ts'
52 ]
53 },
54 ts: {
55 configFileName: 'tsconfig.json'
56 },
57 tslint: {
58 configuration: require('../tslint.json')
59 }
60};