Browse Source

use npm jquery

experimental
Paweł Jedwabny 4 years ago
parent
commit
59c3e8bb59
2 changed files with 6 additions and 4 deletions
  1. +4
    -0
      package.json
  2. +2
    -4
      src/index.js

+ 4
- 0
package.json View File

@@ -22,9 +22,13 @@
"homepage": "https://github.com/Telaxus/EPESI#readme",
"devDependencies": {
"css-loader": "^0.28.7",
"expose-loader": "^0.7.3",
"file-loader": "^0.11.2",
"script-loader": "^0.7.1",
"style-loader": "^0.18.2",
"url-loader": "^0.5.9"
},
"dependencies": {
"jquery": "^2.x.x"
}
}

+ 2
- 4
src/index.js View File

@@ -1,4 +1,5 @@
import 'script-loader!../vendor/bower-asset/gentelella/vendors/jquery/dist/jquery.js'
import jQuery from 'expose-loader?jq!expose-loader?jQuery!expose-loader?$!jquery';

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';
@@ -48,8 +49,5 @@ window.is_visible = function (element) {
}
return true;
};
window.jq = jQuery;
window.jQuery = jQuery;
window.$ = jQuery;

window.Epesi = Epesi;

Loading…
Cancel
Save