Browse Source

Chart.js in webpack script loader

experimental
Paweł Jedwabny 4 years ago
parent
commit
464504cb87
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      index.php
  2. +1
    -0
      src/index.js

+ 1
- 1
index.php View File

@@ -62,7 +62,7 @@ ob_start();
<?php
ini_set('include_path', 'libs/minify' . PATH_SEPARATOR . '.' . PATH_SEPARATOR . 'libs' . PATH_SEPARATOR . ini_get('include_path'));
require_once('Minify/Build.php');
$jses = array('dist/index.js', 'libs/Chart.js');
$jses = array('dist/index.js');
if(!DEBUG_JS) {
$jsses_build = new Minify_Build($jses);
$jsses_src = $jsses_build->uri('serve.php?' . http_build_query(array('f' => array_values($jses))));


+ 1
- 0
src/index.js View File

@@ -4,6 +4,7 @@ import 'script-loader!../vendor/bower-asset/gentelella/vendors/bootstrap/dist/js
import 'script-loader!../vendor/bower-asset/gentelella/vendors/select2/dist/js/select2.js';
import 'script-loader!../libs/jquery-ui-1.12.1.custom.min.js';
import 'script-loader!../libs/jquery.clonePosition.js';
import 'script-loader!../libs/Chart.js';

import Epesi from './epesi';



Loading…
Cancel
Save