1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-23 22:04:47 +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

@@ -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: '$'
}]
}
]
},