Browse Source

move history keeper to webpack import

experimental
Paweł Jedwabny 4 years ago
parent
commit
8679b4fe9b
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      index.php
  2. +4
    -1
      package.json
  3. +1
    -1
      src/index.js

+ 1
- 1
index.php View File

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


+ 4
- 1
package.json View File

@@ -19,5 +19,8 @@
"bugs": {
"url": "https://github.com/Telaxus/EPESI/issues"
},
"homepage": "https://github.com/Telaxus/EPESI#readme"
"homepage": "https://github.com/Telaxus/EPESI#readme",
"devDependencies": {
"script-loader": "^0.7.1"
}
}

+ 1
- 1
src/index.js View File

@@ -1,5 +1,5 @@
import jQuery from '../vendor/bower-asset/gentelella/vendors/jquery/dist/jquery.js'
import 'script-loader!../libs/HistoryKeeper.js';

import Epesi from './epesi';



Loading…
Cancel
Save