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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-12-02 16:50:49 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 12:12:47 +0300
commitadfb9010d47c91c5cc95b764d68ec181a029b475 (patch)
tree6899c32dd81015e76609edf6ae371ab2082925b0 /webpack.common.js
parentf8f09bff0409347573464aba31a9775157c87530 (diff)
Migrate to webpack v5
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js40
1 files changed, 23 insertions, 17 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 0656b389b31..876bb22a8a7 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -1,7 +1,7 @@
/* eslint-disable camelcase */
const { VueLoaderPlugin } = require('vue-loader')
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')
@@ -31,7 +31,7 @@ const modulesToBuild = () => {
throw new Error(`No module "${MODULE}" found`)
}
return formatOutputFromModules({
- [MODULE]: modules[MODULE]
+ [MODULE]: modules[MODULE],
})
}
@@ -99,29 +99,32 @@ module.exports = {
{
test: /\.handlebars/,
loader: 'handlebars-loader',
- query: {
- extensions: '.handlebars',
- },
},
],
},
optimization: {
- splitChunks: {
- automaticNameDelimiter: '-',
- cacheGroups: {
- vendors: {
- test: /[\\/]node_modules[\\/]/,
- enforce: true,
- name: 'nextcloud',
- chunks: 'all',
- },
- },
- },
+ splitChunks: false,
+ // {
+ // automaticNameDelimiter: '-',
+ // cacheGroups: {
+ // vendors: {
+ // test: /[\\/]node_modules[\\/]/,
+ // enforce: true,
+ // name: 'nextcloud',
+ // chunks: 'all',
+ // },
+ // },
+ // },
},
- plugins: [new VueLoaderPlugin(), new ESLintPlugin()],
+ plugins: [
+ new VueLoaderPlugin(),
+ new ESLintPlugin(),
+ new CircularDependencyPlugin({
+ }),
+ ],
resolve: {
alias: {
OC: path.resolve(__dirname, './core/src/OC'),
@@ -131,5 +134,8 @@ module.exports = {
},
extensions: ['*', '.js', '.vue'],
symlinks: false,
+ fallback: {
+ stream: require.resolve('stream-browserify'),
+ },
},
}