aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-12-02 15:46:39 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 10:12:48 +0100
commitbe595a4187559e72d171d7ee90531783ae5e2bb9 (patch)
tree4afd8c93d5a716a9967249e1fa874a18cf93075a /webpack.common.js
parentadfb9010d47c91c5cc95b764d68ec181a029b475 (diff)
downloadnextcloud-server-be595a4187559e72d171d7ee90531783ae5e2bb9.tar.gz
nextcloud-server-be595a4187559e72d171d7ee90531783ae5e2bb9.zip
Copy core/webpack config into common config
Signed-off-by: Louis Chemineau <louis@chmn.me>
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: {