How do I automatically insert a static file path using the node template (pug),?

problem description

use nodejs for server rendering and pug for rendering templates. Static resources are packaged through webpack. In order to solve the caching problem, how can webpack or gulp insert the static resource path with hash into the pug?

node: v8.9.3
webpack: 4.16.1
pug: 2.0.0-rc.3
express: 4.15.4

do you want to manually modify it one by one?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e43777-44a39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e43777-44a39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?