1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Expose jQuery for use outside Webpack build

This commit is contained in:
hoellen 2019-07-08 18:19:09 +02:00
parent 90f678de52
commit b351841418
2 changed files with 12 additions and 1 deletions

View File

@ -15,6 +15,7 @@
"babel-loader": "^8.0.5",
"bootstrap": "^3.4.1",
"css-loader": "^2.1.1",
"expose-loader": "^0.7.5",
"file-loader": "^3.0.1",
"font-awesome": "^4.7.0",
"font-awesome-loader": "^1.0.2",

View File

@ -17,7 +17,6 @@ module.exports = {
{
test: /\.js$/,
use: ['babel-loader']
},
{
test: /\.scss$/,
@ -34,6 +33,17 @@ module.exports = {
{
test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/,
use: ['url-loader']
},
{
// Exposes jQuery for use outside Webpack build
test: require.resolve('jquery'),
use: [{
loader: 'expose-loader',
options: 'jQuery'
}, {
loader: 'expose-loader',
options: '$'
}]
}
]
},