mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
dirname fix in libs
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
const libs = require('../pages/_data/libs');
|
const libs = require('../pages/_data/libs'),
|
||||||
const { exec } = require('child_process');
|
path = require('path'),
|
||||||
|
{ exec } = require('child_process');
|
||||||
|
|
||||||
libs.forEach(function (lib) {
|
libs.forEach(function (lib) {
|
||||||
let cmd = `mkdir -p "dist/libs/${lib}" && cp -r node_modules/${lib} dist/libs/${lib}`;
|
let dirname = path.dirname(lib);
|
||||||
|
let cmd = `mkdir -p "dist/libs/${dirname}" && cp -r node_modules/${lib} dist/libs/${lib}`;
|
||||||
exec(cmd)
|
exec(cmd)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<link href="{{ site.base }}/dist/css/tabler.css{{ site.date | date: '%s' }}" rel="stylesheet" />
|
<link href="{{ site.base }}/dist/css/tabler.css?{{ site.time | date: '%s' }}" rel="stylesheet" />
|
||||||
<link href="{{ site.base }}/dist/css/tabler-flags.css{{ site.date | date: '%s' }}" rel="stylesheet" />
|
<link href="{{ site.base }}/dist/css/tabler-flags.css?{{ site.time | date: '%s' }}" rel="stylesheet" />
|
||||||
<link href="{{ site.base }}/dist/css/tabler-charts.css{{ site.date | date: '%s' }}" rel="stylesheet" />
|
<link href="{{ site.base }}/dist/css/tabler-charts.css?{{ site.time | date: '%s' }}" rel="stylesheet" />
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
<!-- Libs JS -->
|
<!-- Libs JS -->
|
||||||
{% for lib in site.data.libs %}
|
{% for lib in site.data.libs %}
|
||||||
<script src="{{ site.base }}/{% if jekyll.environment == 'production' %}dist/libs{% else %}node_modules{% endif %}/{{ lib }}?{{ site.date | date: '%s' }}"></script>
|
<script src="{{ site.base }}/{% if jekyll.environment == 'production' %}dist/libs{% else %}node_modules{% endif %}/{{ lib }}?{{ site.time | date: '%s' }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<!-- Tabler Core -->
|
<!-- Tabler Core -->
|
||||||
<script src="{{ site.base }}/dist/js/tabler{% if jekyll.environment == 'production' %}.min{% endif %}.js?{{ site.date | date: '%s' }}"></script>
|
<script src="{{ site.base }}/dist/js/tabler{% if jekyll.environment == 'production' %}.min{% endif %}.js?{{ site.time | date: '%s' }}"></script>
|
||||||
|
|
||||||
<!-- Tabler Plugins -->
|
<!-- Tabler Plugins -->
|
||||||
<script src="{{ site.base }}/dist/js/tabler-charts{% if jekyll.environment == 'production' %}.min{% endif %}.js?{{ site.date | date: '%s' }}"></script>
|
<script src="{{ site.base }}/dist/js/tabler-charts{% if jekyll.environment == 'production' %}.min{% endif %}.js?{{ site.time | date: '%s' }}"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user