I am currently using the most up-to-date Angular CLI and have set up a custom components folder to store all of my components.
For instance, within the TextInputComponent
, there is a TextInputConfiguration
class located in src/components/configurations.ts
. In the file
src/app/home/addnewuser/add.user.component.ts
where I am using it, you will find:
import { TextInputConfiguration } from "../../../components/configurations";
While this works for now, as my application grows larger and more complex, the ../
in the import path becomes cumbersome. How can I address this issue?
In the past, when working with SystemJS, I would configure the paths in the system.config.js
file like so:
System.config({
..
map: {'ng_custom_widgets': 'components'},
packages: {'ng_custom_widgets': {main: 'configurations.ts', defaultExtension: 'ts'}},
)};
How can achieve similar functionality with webpack while utilizing the Angular CLI?