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
|
$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')
|
||||||
|
|
||||||
|
@ -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: [{
|
||||||
|
Loading…
Reference in New Issue
Block a user