mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
[IMPROVEMENT] Load jQuery externaly
This commit is contained in:
parent
3ed862aa4d
commit
7fc3622b24
7
site/_config/debugbar.yml
Normal file
7
site/_config/debugbar.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
Name: sitedebugbar
|
||||
After:
|
||||
- 'debugbar'
|
||||
---
|
||||
DebugBar:
|
||||
include_jquery: false
|
@ -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')
|
||||
|
||||
|
@ -37,8 +37,7 @@ module.exports = {
|
||||
entry: jsScripts,
|
||||
devtool: "source-map",
|
||||
externals: {
|
||||
"custom-select": "CustomSelect",
|
||||
"ui-progress-button": "UIProgressButton"
|
||||
"jquery": "jQuery",
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
|
Loading…
Reference in New Issue
Block a user