From 4633ea99f8180bc76b041afe2a72689f17b44784 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Sun, 15 Sep 2024 20:02:34 +0300 Subject: [PATCH] [mobile] revert changes for chunks spliting --- .../framework7-react/build/webpack.config.js | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index 0d4766faf7..d7e7d29443 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -29,8 +29,8 @@ const config = { }, output: { path: resolvePath(`../../apps/${editor}/mobile`), - filename: 'dist/js/[name].[contenthash].js', - chunkFilename: 'dist/js/[name].[contenthash].js', + filename: 'dist/js/[name].js', + chunkFilename: 'dist/js/[name].js', publicPath: '', hotUpdateChunkFilename: 'hot/hot-update.js', hotUpdateMainFilename: 'hot/hot-update.json', @@ -52,26 +52,26 @@ const config = { }, devtool: env === 'production' ? false : 'source-map', optimization: { - splitChunks: { - chunks: 'all', - minSize: 20000, - maxSize: 244000, - cacheGroups: { - vendor: { - test: /[\\/]node_modules[\\/]/, - name: 'vendors', - chunks: 'all', - enforce: true, - }, - common: { - name: 'common', - minChunks: 2, - chunks: 'all', - reuseExistingChunk: true, - enforce: true, - } - } - }, + // splitChunks: { + // chunks: 'all', + // minSize: 20000, + // maxSize: 244000, + // cacheGroups: { + // vendor: { + // test: /[\\/]node_modules[\\/]/, + // name: 'vendors', + // chunks: 'all', + // enforce: true, + // }, + // common: { + // name: 'common', + // minChunks: 2, + // chunks: 'all', + // reuseExistingChunk: true, + // enforce: true, + // } + // } + // }, minimizer: [ new TerserPlugin({ terserOptions: {