Open pavel242242 opened 5 years ago
aha, tak stacilo pridat require na cssko
zatim to mam na prasaka : require('../node_modules/highlight.js/styles/ir-black.css')
commitnuto, jen bude potreba do dependencies narvat vue-highlightjs a asi do assets vrazit ten ir-black.css, protoze ten je soucasti highlight.js, v tom vue-highlight jsem styly nenasel...
Asi jsem idiot, na lokale se mi to nepovedlo rozchodit. sel jsem na to takhle:
npm install --save vue-highlightjs
pak jsem do main.js pridal:a do tahak vue zkousel pridat
<highlight-code lang="sql"> Select * from terror where nkillter > 0; </highlight-code>
i<pre v-highlightjs><code class="sql"> Select * from terror where nkillter > 0; </code></pre>
ale bez uspechu, pise mi to 'Unknown custom element: - did you register the component correctly?'
https://www.npmjs.com/package/vue-highlightjs