You've already forked Mailu
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:
@@ -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: '$'
|
||||
}]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user