summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-25 15:28:23 +0100
committerGitHub <noreply@github.com>2022-01-25 15:28:23 +0100
commit79b62381472df745d27fdd2a29d504a4ceb54f50 (patch)
treefe84593e33069e22ce5172a6b0d0a0b952aea739
parent242d640363dfebcbe4e2e6c87c3806bb40076068 (diff)
parentb34d03eab45c5680061c1602a7f705ab186794f2 (diff)
Merge pull request #2622 from nextcloud/techdebt/noid/ignore-plugin
-rw-r--r--webpack.config.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js
index bb046c5e..5574a804 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -5,7 +5,10 @@ const webpackConfig = require('@nextcloud/webpack-vue-config')
webpackConfig.entry['files-action'] = path.join(__dirname, 'src', 'files-action.js')
webpackConfig.entry['admin-settings'] = path.join(__dirname, 'src', 'admin-settings.js')
webpackConfig.plugins.push(...[
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
+ new webpack.IgnorePlugin({
+ resourceRegExp: /^\.\/locale$/,
+ contextRegExp: /moment$/,
+ }),
])
webpackConfig.module.rules.push({