Browse Source

select2 in webpack script loader

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

+ 1
- 2
index.php View File

@@ -62,9 +62,8 @@ 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');
$select2 = DEBUG_JS ? 'vendor/bower-asset/gentelella/vendors/select2/dist/js/select2.js' : 'vendor/bower-asset/gentelella/vendors/select2/dist/js/select2.min.js';
$jquery_ui = DEBUG_JS ? 'libs/jquery-ui-1.12.1.custom.js':'libs/jquery-ui-1.12.1.custom.min.js';
$jses = array('dist/index.js', 'libs/jquery-ui-1.12.1.custom.min.js', 'libs/jquery.clonePosition.js', $select2,'libs/Chart.js');
$jses = array('dist/index.js', 'libs/jquery-ui-1.12.1.custom.min.js', 'libs/jquery.clonePosition.js', 'libs/Chart.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

@@ -1,6 +1,7 @@
import 'script-loader!../vendor/bower-asset/gentelella/vendors/jquery/dist/jquery.js'
import 'script-loader!../libs/HistoryKeeper.js';
import 'script-loader!../vendor/bower-asset/gentelella/vendors/bootstrap/dist/js/bootstrap.js';
import 'script-loader!../vendor/bower-asset/gentelella/vendors/select2/dist/js/select2.js';

import Epesi from './epesi';



Loading…
Cancel
Save