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({