I'm trying to use Entypo with Laravel 5, but without success.
I installed it with npm install entypo
, then I added this to my <head>
:
const entypo = require('entypo')
document.body.insertBefore(entypo.getNode(), document.body.firstChild)
Finally, I tested it with this in my blade file:
<svg><use xlink:href="#entypo-star" /></svg>
With the following CSS:
svg {
fill: #fff;
}
I get the error message:
1:25 Uncaught ReferenceError: require is not defined
What's wrong with my install ?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hSakcN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire