( , , html.
webpack. , ng eject webpack.config.js, .ts @ngtools/webpack :
new AotPlugin({
"mainPath": "main.ts",
"replaceExport": false,
"hostReplacementPaths": {
"environments\\environment.ts": "environments\\environment.ts"
},
"exclude": [],
"tsConfigPath": "src/main/front/tsconfig.app.json",
"skipCodeGeneration": true
})
, . AOT ( ). :
ngtools , :
skipCodeGeneration. , false. . templateUrl: "string" : require ( "string" )
, templateUrl AOT, AotPlugin ts-loader @ngtools/webpack:
ts-loader
ts :
{
test: /\.tsx?$/,
loader: 'ts-loader'
}
URL . :
@Component({
selector : "custom-component",
templateUrl : "/my_custom_url_on_server"
})
export class CustomComponent {
}
. Issue