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 15:11:35 +01:00
parent f835e43e45
commit 9fe6f4b06c
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',