My AngularJS app has a specific structure that includes different directories for each component:
theprojectroot
|- src
| |- app
| | |- index.html
| | |- index.js
| | |- userhome
| | | |- userhome.html
| | | |- userhome.js
| | |- management
| | | |- management.html
| | | |- management.js
| | |- social
| | | |- social.html
| | | |- social.js
| |- assets
|- vendor
|- package.json
While there are more directories and js files, the main idea is to have each component in its own directory with an HTML page (loaded into index.html
using ui-router
) and a JS file containing Angular module, controllers, etc.
Now, I want to move my app to production by condensing it into just three files.
- theproject.html
- theproject.js
- theproject.css
I've searched for a solution, particularly using Grunt, but haven't found any clear instructions on achieving this. Can anyone provide guidance or point me in the right direction?
Thank you!