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

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -