0
Follow
2
View

I am not able to access my css and js file in public to my index.hbs in views folder

dunmas 注册会员
2023-01-25 00:42

 app.use(express.static(path.join(__dirname, "public")));

|__public/   
    |__ css/
        |__ css files...
    |__ js/
        |__ js files...

Now you set the path to the public directory you have to give the path public folder when you import


About the Author

Question Info

Publish Time
2023-01-25 00:42
Update Time
2023-01-25 00:42

Related Question

登录Telegram Web时HMAC-SHA-256签名验证失败

Quarkus/Hibernate合并OneToMany(orphanRemoval=true)会产生HibernateException

nameerror name is not define

Phpmyadmin导入CSV文件,空白页

在typescript项目中使用tinymce

Inteliji显示scala zio操作符的' ' _ <- ' '错误

linux磁盘空间满了,找不到被谁占用了

如何获得webhook响应数据使用tradingview和php

Orders Pinescript | 3逗号

如何推值列表在amleaf?