Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/webpack.common.js b/webpack.common.js
index c98bfe0f..4692ae6c 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -1,9 +1,10 @@
-const path = require('path')
const { VueLoaderPlugin } = require('vue-loader')
+const babelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
+const ModuleReplaceWebpackPlugin = require('module-replace-webpack-plugin')
+const path = require('path')
const StyleLintPlugin = require('stylelint-webpack-plugin')
const SassGetGridConfig = require('./src/utils/SassGetGridConfig')
-const ModuleReplaceWebpackPlugin = require('module-replace-webpack-plugin');
const appName = process.env.npm_package_name
@@ -12,7 +13,7 @@ module.exports = {
output: {
path: path.resolve(__dirname, './js'),
publicPath: '/js/',
- filename: `${appName}.js`,
+ filename: `${appName}.js?v=[contenthash]`,
chunkFilename: `${appName}.[name].js?v=[contenthash]`,
},
module: {
@@ -53,7 +54,14 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel-loader',
- exclude: /node_modules(?!(\/|\\)(hot-patcher|webdav|camelcase)(\/|\\))/,
+ exclude: babelLoaderExcludeNodeModulesExcept([
+ '@essentials/request-timeout',
+ '@nextcloud/event-bus',
+ 'camelcase',
+ 'hot-patcher',
+ 'semver',
+ 'webdav',
+ ]),
},
{
test: /\.svg$/,