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
Post a Comment