summaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 876bb22a8a7..887dc9f8f5e 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -4,7 +4,7 @@ const path = require('path')
const CircularDependencyPlugin = require('circular-dependency-plugin')
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
const ESLintPlugin = require('eslint-webpack-plugin')
-
+const webpack = require('webpack')
const modules = require('./webpack.modules.js')
const formatOutputFromModules = (modules) => {
@@ -51,6 +51,14 @@ module.exports = {
module: {
rules: [
{
+ test: /davclient/,
+ loader: 'exports-loader',
+ options: {
+ type: 'commonjs',
+ exports: 'dav',
+ },
+ },
+ {
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
@@ -124,6 +132,11 @@ module.exports = {
new ESLintPlugin(),
new CircularDependencyPlugin({
}),
+ new webpack.ProvidePlugin({
+ _: 'underscore',
+ $: 'jquery',
+ jQuery: 'jquery',
+ }),
],
resolve: {
alias: {