Replies: 1 comment
-
Hello @elldur,
I don't know what is received and what is expected exactly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Despite
{test: /\.(ico|svg|png|ttf|json)$/, type: "asset/resource"}
being in webpack config. Loading works correctly when importing in javascript (using import not require). The problem is fixed by using a different extension e.g..webmanifest
.require
treats json differently even outside of pug but the solutions I found involve changingrequire.extensions
which does not exist in pug since require seems to be a wrapper formod.require
which is not accessible within pug.Is there a way around this other than changing the extension?
Beta Was this translation helpful? Give feedback.
All reactions