blob: a87e3839674b0e844e07e96d1382e0c312fd0de3 [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: [
Matteo Scandolod62ea792016-12-22 14:02:28 -080028 'html?' + JSON.stringify({
29 attrs: ["img:src", "img:ng-src"]
30 })
Matteo Scandolod819c922016-12-02 14:06:14 -080031 ]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080032 },
33 {
34 test: /\.(css|scss)$/,
35 loaders: [
36 'style',
37 'css',
38 'sass',
39 'postcss'
40 ]
Matteo Scandolo266907e2016-12-20 13:41:42 -080041 },
42 {
43 test: /\.(png|woff|woff2|eot|ttf|svg|jpg|gif|jpeg)$/,
44 loader: 'url-loader?limit=100000'
Matteo Scandolod819c922016-12-02 14:06:14 -080045 }
46 ]
47 },
Matteo Scandolof6acdbe2016-12-13 10:29:37 -080048 plugins: [],
Matteo Scandolod819c922016-12-02 14:06:14 -080049 debug: true,
50 devtool: 'source-map',
51 resolve: {
52 extensions: [
53 '',
54 '.webpack.js',
55 '.web.js',
56 '.js',
57 '.ts'
58 ]
59 },
60 ts: {
61 configFileName: 'tsconfig.json'
62 },
63 tslint: {
64 configuration: require('../tslint.json')
65 }
66};