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

@@ -41,6 +41,21 @@ module.exports = webpackMerge(commonConfig, {
modules: [helpers.root('node_modules')]
},
module: {
rules: [
{
test: /\.ts$/,
include: [helpers.root('app'), helpers.root('../ng2-components')],
use: ['ts-loader?' + JSON.stringify({
"compilerOptions": {
"paths": {}
}
}), 'angular2-template-loader'],
exclude: [ /node_modules/, /public/, /resources/, /dist/]
}
]
},
plugins: [
new CopyWebpackPlugin([
... alfrescoLibs.map(lib => {