I have an app structure like this:
├── /dashboard
│ ├── dashboard.css
│ ├── dashboard.html
│ ├── dashboard.component.ts
│ ├── dashboard.service.ts
│ ├── index.ts
├── /users
│ ├── users.css
│ ├── users.html
│ ├── users.component.ts
│ ├── users.service.ts
│ ├── index.ts
├── /login
│ ├── login.css
│ ├── login.html
│ ├── login.component.ts
│ ├── login.service.ts
│ ├── index.ts
├── app.component.ts
├── app.module.ts
├── app.routes.ts
├── app.styles.css
And I want to code split my app into something like this:
├── dashboard.js
├── users.js
├── login.js
├── app.js
I cannot seem to find an example of how I can do this with webpack. So 2 questions. Can this be done? And, How can this be done?
Any leads or help would be appreciated. I have been researching this all morning.
Angular documentation suggests it here, but no examples or tutorials that I can find. So it's possible, yet no one know how to do it?.
you can find the webpack configuration here