From de2b038ad5a216ba08e0b929934e86530e345700 Mon Sep 17 00:00:00 2001 From: eduardhrachou Date: Fri, 12 Jan 2024 15:27:03 +0300 Subject: [PATCH] fix --- gatsby-node.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index f9785b5d282..975456fdcac 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -404,31 +404,6 @@ exports.onCreateWebpackConfig = ({ actions, loaders, getConfig }, { ...options } actions.setWebpackConfig({ devtool: false, mode: isProduction ? 'production' : 'development', - optimization: { - minimize: isProduction, - minimizer: [new TerserPlugin()], - splitChunks: { - chunks: 'all', - minSize: 30000, - maxSize: 0, - minChunks: 1, - maxAsyncRequests: 5, - maxInitialRequests: 3, - automaticNameDelimiter: '~', - name: true, - cacheGroups: { - vendors: { - test: /[\\/]node_modules[\\/]/, - priority: -10, - }, - default: { - minChunks: 2, - priority: -20, - reuseExistingChunk: true, - }, - }, - }, - }, plugins: [new StylelintPlugin({ ...style_lint_options, ...options })], resolve: { modules: [path.resolve(__dirname, 'src'), 'node_modules'],