Reputation: 142
I don't really know hot to explain it but basically I have .hbs files which the mail resource needs. Normally they don't get copied into the dist
folder when I run npm start run:dev
. So I modified the nest-cli.json
like this.
But now I have the problem that the patch which they are getting copied to are not correct.
This is how I have it in my root folder:
And this is where it gets copied to:
I´ve tried playing around with the assets path and searched for answers but I didn't find any other way of coping those files
Upvotes: 1
Views: 3783
Reputation: 16189
"compilerOptions": {
"assets": [
{
"include": "/mail",
"outDir": "dist/mail",
"watchAssets": true
},
],
"watchAssets": true
}
note that in your first image templates
folder under mail
folder is same as mail/templates
in your second image. And this because you have only one folder under the parent folder
Upvotes: 8