Skip to content
Snippets Groups Projects
Unverified Commit d78b82b5 authored by Julius Härtl's avatar Julius Härtl
Browse files

Enforce providing jquery from server node_modules


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 64cd2558
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,9 @@ module.exports = { ...@@ -141,7 +141,9 @@ module.exports = {
new VueLoaderPlugin(), new VueLoaderPlugin(),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
// Provide jQuery to jquery plugins as some are loaded before $ is exposed globally. // Provide jQuery to jquery plugins as some are loaded before $ is exposed globally.
jQuery: 'jquery', // We need to provide the path to node_moduels as otherwise npm link will fail due
// to tribute.js checking for jQuery in @nextcloud/vue
jQuery: path.resolve(path.join(__dirname, 'node_modules/jquery')),
// Shim ICAL to prevent using the global object (window.ICAL). // Shim ICAL to prevent using the global object (window.ICAL).
// The library ical.js heavily depends on instanceof checks which will // The library ical.js heavily depends on instanceof checks which will
// break if two separate versions of the library are used (e.g. bundled one // break if two separate versions of the library are used (e.g. bundled one
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment