Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add expose-loader for window scope jquery plugins

Ed Plato5e7463661cef
diff --git a/webpack.config.js b/webpack.config.js
index d1c586f33..4aec16a73 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -118,6 +118,16 @@ module.exports = {
}
}
},
+ {
+ test: require.resolve('jquery'), // expose globally for jQuery plugins
+ use: [{
+ loader: 'expose-loader',
+ options: 'jQuery'
+ }, {
+ loader: 'expose-loader',
+ options: '$'
+ }]
+ },
{
test: /\.(sa|sc|c)ss$/,
use: [