[IMPROVEMENT] Load jQuery externaly

This commit is contained in:
Tony Air 2018-02-08 17:55:22 +07:00
parent 3ed862aa4d
commit 7fc3622b24
3 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,7 @@
---
Name: sitedebugbar
After:
- 'debugbar'
---
DebugBar:
include_jquery: false

View File

@ -58,6 +58,8 @@
$BetterNavigator
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" crossorigin="anonymous"></script>
$WebpackJS('app.js')
$WebpackCSS('app.css')

View File

@ -37,8 +37,7 @@ module.exports = {
entry: jsScripts,
devtool: "source-map",
externals: {
"custom-select": "CustomSelect",
"ui-progress-button": "UIProgressButton"
"jquery": "jQuery",
},
module: {
rules: [{