[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 $BetterNavigator
</div> </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" crossorigin="anonymous"></script>
$WebpackJS('app.js') $WebpackJS('app.js')
$WebpackCSS('app.css') $WebpackCSS('app.css')

View File

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