blob: d3303ba51c67012f6f324cf82a1fad42449fe71d [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 Scandolo266907e2016-12-20 13:41:42 -080039 },
40 {
41 test: /\.(png|woff|woff2|eot|ttf|svg|jpg|gif|jpeg)$/,
42 loader: 'url-loader?limit=100000'
Matteo Scandolod819c922016-12-02 14:06:14 -080043 }
44 ]
45 },
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080046 plugins: [],
Matteo Scandolod819c922016-12-02 14:06:14 -080047 debug: true,
48 devtool: 'source-map',
49 resolve: {
50 extensions: [
51 '',
52 '.webpack.js',
53 '.web.js',
54 '.js',
55 '.ts'
56 ]
57 },
58 ts: {
59 configFileName: 'tsconfig.json'
60 },
61 tslint: {
62 configuration: require('../tslint.json')
63 }
64};