I have an application 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 the code to break my application into something like this:
├── dashboard.js ├── users.js ├── login.js ├── app.js
I cannot find an example of how I can do this with webpack. So, 2 questions. It can be done? And how can this be done?
Any conclusions or help would be appreciated. I study this all morning.
Angular documentation offers here , but there are no examples or tutorials that I can find. So it's possible, but no one knows how to do this?
you can find webpack configuration here
angular webpack
Jason spick
source share