You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing something in src/pages/whatever.njk such as
<imgsrc="../images/cat.jpg">
works in build mode, but it doesn't work in dev mode (npm run).
<imgsrc="/src/images/cat.jpg">
Works in both modes, but I'm migrating from webpack so I don't really want to go through and fix a million src= attributes. It also kinda makes more sense to me to use relative paths here.
I'm not sure if there's something to turn on to fix it, but i tried normalizeBasePath. I'm new to this, so please excuse me if there's something I'm missing.
The text was updated successfully, but these errors were encountered:
I'm using nunjucks.
Writing something in
src/pages/whatever.njk
such asworks in build mode, but it doesn't work in dev mode (
npm run
).Works in both modes, but I'm migrating from webpack so I don't really want to go through and fix a million src= attributes. It also kinda makes more sense to me to use relative paths here.
I'm not sure if there's something to turn on to fix it, but i tried
normalizeBasePath
. I'm new to this, so please excuse me if there's something I'm missing.The text was updated successfully, but these errors were encountered: