1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-26 04:54:40 +04:00

separate css and js includes

This commit is contained in:
Michal Wolny
2020-11-15 19:41:30 +01:00
parent dde02732ef
commit bebab5bd9d
4 changed files with 65 additions and 41 deletions
+10 -2
View File
@@ -587,13 +587,21 @@
</div>
<h2 id="cdn-support">CDN support</h2>
<p>All files included in <code class="language-plaintext highlighter-rouge">@tabler/core</code> npm package are available over a CDN.</p>
<h3 id="javascript">Javascript</h3>
<div class="language-html highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">href=</span><span class="s">"https://unpkg.com/@tabler/core@latest/dist/css/tabler.min.css"</span><span class="nt">&gt;</span>
<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"https://unpkg.com/@tabler/core@latest/dist/js/tabler.min.js"</span><span class="nt">&gt;&lt;/script&gt;</span>
<pre class="highlight"><code><span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"https://unpkg.com/@tabler/core@latest/dist/js/tabler.min.js"</span><span class="nt">&gt;&lt;/script&gt;</span>
</code></pre>
</div>
</div>
<h3 id="styles">Styles</h3>
<div class="language-html highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">href=</span><span class="s">"https://unpkg.com/@tabler/core@latest/dist/css/tabler.min.css"</span><span class="nt">&gt;</span>
</code></pre>
</div>
</div>
<h3 id="other-versions">Other versions</h3>
<p>To load a specific version replace <code class="language-plaintext highlighter-rouge">latest</code> with the desired version number.</p>
<div class="language-html highlighter-rouge">
<div class="highlight">