2016-04-13 19:20:51 +02:00
|
|
|
// #docregion
|
2016-08-17 20:52:25 +02:00
|
|
|
var helpers = require('./helpers');
|
|
|
|
|
2016-04-13 19:20:51 +02:00
|
|
|
module.exports = {
|
2016-05-15 13:22:29 +02:00
|
|
|
devtool: 'inline-source-map',
|
2016-04-13 19:20:51 +02:00
|
|
|
|
|
|
|
resolve: {
|
|
|
|
extensions: ['', '.ts', '.js']
|
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{
|
|
|
|
test: /\.ts$/,
|
2016-09-14 18:15:51 +01:00
|
|
|
loaders: ['awesome-typescript-loader', 'angular2-template-loader']
|
2016-04-13 19:20:51 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.html$/,
|
|
|
|
loader: 'html'
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
|
|
|
loader: 'null'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
2016-08-17 20:52:25 +02:00
|
|
|
exclude: helpers.root('src', 'app'),
|
2016-04-13 19:20:51 +02:00
|
|
|
loader: 'null'
|
2016-08-17 20:52:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
include: helpers.root('src', 'app'),
|
|
|
|
loader: 'raw'
|
2016-04-13 19:20:51 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// #enddocregion
|