split the module runner ts-loader between dev and production in the way that the production runner will override the path during the build (#1907)

This commit is contained in:
Eugenio Romano
2017-05-26 12:53:20 +01:00
committed by Denys Vuika
parent 390a9b5c33
commit 6632f05161
3 changed files with 29 additions and 9 deletions

View File

@@ -61,15 +61,6 @@ module.exports = {
use: 'source-map-loader',
exclude: [ /public/, /resources/, /dist/]
},
{
test: /\.ts$/,
include: [helpers.root('app'), helpers.root('../ng2-components')],
loader: [
'ts-loader',
'angular2-template-loader'
],
exclude: [ /node_modules/, /public/, /resources/, /dist/]
},
{
test: /\.html$/,
loader: 'html-loader',