module.exports = { | |
module: { | |
preLoaders: [ | |
{ | |
test: /\.ts$/, | |
exclude: /node_modules/, | |
loader: 'tslint' | |
} | |
], | |
loaders: [ | |
{ | |
test: /.json$/, | |
loaders: [ | |
'json' | |
] | |
}, | |
{ | |
test: /\.ts$/, | |
exclude: /node_modules/, | |
loaders: [ | |
'ng-annotate', | |
'ts' | |
] | |
}, | |
{ | |
test: /.html$/, | |
loaders: [ | |
'html' | |
] | |
}, | |
{ | |
test: /\.(css|scss)$/, | |
loaders: [ | |
'style', | |
'css', | |
'sass', | |
'postcss' | |
] | |
} | |
] | |
}, | |
plugins: [], | |
debug: true, | |
devtool: 'source-map', | |
resolve: { | |
extensions: [ | |
'', | |
'.webpack.js', | |
'.web.js', | |
'.js', | |
'.ts' | |
] | |
}, | |
ts: { | |
configFileName: 'tsconfig.json' | |
}, | |
tslint: { | |
configuration: require('../tslint.json') | |
} | |
}; |