How do I load webpack resource in JSON -


i have following code...

[     {         "number": 0,         "color":  "blue",         "content": require('./first-card.pug')     }     ... ] 

when try run webpack see...

error in ./src/app/jg/cards/cards.json module build failed: syntaxerror: unexpected token r     @ object.parse (native) 

do need escape or something?


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -