blob: 8a4faeefc9677cbb0f370951cc46140d8a4aa9f2 [file] [log] [blame]
LiYi0784eeb2017-03-02 18:29:04 +08001/* Copyright 2017 ZTE Corporation.
2 *
3 *Licensed under the Apache License, Version 2.0 (the "License");
4 *you may not use this file except in compliance with the License.
5 *You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15var helpers = require('./helpers');
16
17module.exports = {
18 devtool: 'inline-source-map',
19
20 resolve: {
21 extensions: ['', '.ts', '.js']
22 },
23
24 module: {
25 loaders: [
26 {
27 test: /\.ts$/,
28 loaders: ['awesome-typescript-loader', 'angular2-template-loader']
29 },
30 {
31 test: /\.html$/,
32 loader: 'html'
33
34 },
35 {
36 test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
37 loader: 'null'
38 },
39 {
40 test: /\.css$/,
41 exclude: helpers.root('src', 'app'),
42 loader: 'null'
43 },
44 {
45 test: /\.css$/,
46 include: helpers.root('src', 'app'),
47 loader: 'raw'
48 }
49 ]
50 }
51};