I am currently using angular2 with dropwizard .
By default Dropwizard application looks up an asset bundle from src/main/resources within the project module.
I am currently using angular2 and angular-cli to create angular builds. The angular cli's ng build
command generates the javascripts in the dist folder that is outside the src folder.
How can I make dist folder available for dropwizard to be able to serve it as an asset bundle?
Which maven plugins can I use to accomplish the above and create a jar that is available for dropwizard to serve from classpath?
Thanks
You can change the build directory by editing the outDir
in your .angular-cli.json
.angular-cli.json
{
...
"apps": [
{
"root": "src",
"outDir": "src/main/resources",
...
}
]
...
}
See Angular CLI Config Schema for all the angular-cli options.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.