return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>javascript - NestJS compilerOptions assets wrong path - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - NestJS compilerOptions assets wrong path - Stack Overflow

programmeradmin2浏览0评论

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

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

Share Improve this question asked Jan 9, 2023 at 18:56 SpechtSpecht 1423 silver badges13 bronze badges 2
  • The picture you have attached doesn't prove that hbs files are not under the templates directory. VSCode is doing a bit weird in showing directories that have only one sub-directory. You can double-check with your file manager to see. – Mostafa Fakhraei Commented Jan 9, 2023 at 19:31
  • Nope VSC shows it correctly there is no templates folder in src in the dist folder – Specht Commented Jan 9, 2023 at 21:09
Add a ment  | 

1 Answer 1

Reset to default 8
"pilerOptions": {    
"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

发布评论

评论列表(0)

  1. 暂无评论